how to get arg and print on the output

stéphane ducasse ducasse at iam.unibe.ch
Tue Aug 15 08:43:51 UTC 2006


Andreas

I'm fed up to see people coming to squeak and after saying that they  
use Ruby for scripting (writing small program
that perform string manipulations and output some results). We have  
good regexp packages. For these people having a
result printed in a console is important and I would like to have the  
same possibility in Squeak.  They do not like/understand
the idea of an IDE but want to see the results at their prompt.

So just having a printout is the first step but an important one. I  
think that Ruby success is also because they are not trapped in an image
(which they may discover soon as a program cache and everybody will  
find that cool). Still good C and system interaction
is still something that looks complex to me (but I never tried).

Stef


>>>> Can we get the same in squeak?
>>> I'll eat my hat if works on Windows - a GUI program has no stdout  
>>> so that such an invokation (unless done from a special "command  
>>> line VM") simply cannot have any useful effect.
>> I don't know about VW, but it works fine on Windows with Squeak(*).
>> Standard output goes to the console, so you can open a console and
>> write to standard output. The console conveniently displays itself
>> in a separate window, and behaves more or less as you might expect.
>> The console window can be opened and closed as needed.
>
> But what would be the point of that? The main use of stdout and  
> stdin lies in the ability of doing I/O redirection. Creating new  
> consoles (which is admittedly trivial) is not helping with that.
>
> Cheers,
>   - Andreas
>




More information about the Squeak-dev mailing list