ReadEvalPrintLoop.st
changeset 16089 04545ee7ab04
parent 16088 37f0dd85a293
child 16115 032fc08ead9b
--- a/ReadEvalPrintLoop.st	Thu Feb 20 08:49:46 2014 +0100
+++ b/ReadEvalPrintLoop.st	Thu Feb 20 09:43:50 2014 +0100
@@ -477,7 +477,10 @@
 
                     ms := Time millisecondsToRun:[
                         us := Time microsecondsToRun:[
-                            value := (compilerClass new requestor:self) evaluate:chunk compile:true.
+                            value := (compilerClass new 
+                                        requestor:self) 
+                                        evaluate:chunk 
+                                        compile:true.
                         ].
                     ].
                     doPrint ifTrue:[
@@ -550,13 +553,21 @@
     "Modified: / 06-12-2011 / 15:29:03 / cg"
 ! !
 
+!ReadEvalPrintLoop methodsFor:'queries'!
+
+autoDefineVariables
+    "when evaluating with --eval, auto define any variables"
+
+    ^ #workspace
+! !
+
 !ReadEvalPrintLoop class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/ReadEvalPrintLoop.st,v 1.45 2014-02-20 07:49:46 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ReadEvalPrintLoop.st,v 1.46 2014-02-20 08:43:50 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/ReadEvalPrintLoop.st,v 1.45 2014-02-20 07:49:46 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ReadEvalPrintLoop.st,v 1.46 2014-02-20 08:43:50 cg Exp $'
 ! !