May 5, 2012
1:02 a.m.
On 5 May 2012 00:46, Sean P. DeNigris <sean@clipperadams.com> wrote:
Guillermo Polito wrote
Thanks for fixing :)
Sure!
For fun, here's a REPL using no packages added to 1.4: [ Â Â Â Â command := FileStream stdin nextLine. Â Â Â Â command = 'exit' ] whileFalse: [ Â Â Â Â Â Â Â Â result := Compiler evaluate: command. Â Â Â Â Â Â Â Â FileStream stdout nextPutAll: result asString; lf ].
"for completeness of your example, i would add after loop: " Smalltalk snapshot: false andQuit:true.
You just have to start from a terminal...
Sean
-- View this message in context: http://forum.world.st/Standard-input-in-Pharo-tp2173080p4610033.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko.