Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!ix.netcom.com!netcom.com!marcr
From: marcr@netcom.com (Marc Rossi)
Subject: Prompt for input
Message-ID: <marcrD54yHz.pB@netcom.com>
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
X-Newsreader: TIN [version 1.2 PL1]
Date: Wed, 8 Mar 1995 19:08:22 GMT
Lines: 27
Sender: marcr@netcom.netcom.com

I'm very new to Smalltalk so please be patient. My question is
how do you prompt the user for input. I've gone through the GNU
Smalltalk tutorial and looked at the String class but am still 
unable to get it to work. I'm using GNU smalltalk on the PC or HP

st> Smalltalk at: #x put: (String new) !
st> x readFrom: stdin !


After the second line it 'hangs'. I think this is because I'm not
terminating the string somehow.  Do I need to subclass the String 
Class to get this functionality?

Also, block execution: What is the :x| in the blaock [:x| x printNl]
It is used int the form of 1 to: 20 do: [:x| x printNl]!


Also, does anybody know where to get version 1.2 of GNU Smalltalk and mstGUI-1.0.
Thanks for your help.
Mike Perik
mikep@crt.com

PS Prefer email but posting is sufficient
-- 
________________
Mike Perik
mikep@crt.com
