[Newbies] Problems with do:

stéphane ducasse ducasse at iam.unibe.ch
Sun Sep 17 18:50:20 UTC 2006


hi ralph

why in your pattern you have block around Stream classes ?

Stef

On 17 sept. 06, at 01:28, Ralph Johnson wrote:

> You could do something like
> [aFileStream atEnd] whileFalse: [line := aFileStream nextLine.
> Transcipt show: line: cr.]
>
> Alternatively, you could convert your stream of characters into a
> stream of lines.  I described something similar in
> http://wiki.cs.uiuc.edu/PatternStories/FunWithStreams but it created a
> stream of words instead of a stream of lines.  Read that, and you
> should be able to make a LineStream pretty easily.
>
> -Ralph Johnson
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners



More information about the Beginners mailing list