[squeak-dev] Re: Generators on Streams on Generators on Collections on ...

marcel.taeumel Marcel.Taeumel at hpi.de
Tue Apr 12 19:33:39 UTC 2016


Hi Nicolas,

if you construct something like:

| someStream |
someStream := mySocketStream select: [:ea | ... ] thenCollect: [:ea | ... ].
...
someStream next.
...
someStream next: 5.
...

You can only use someStream as long as there is data available while it is
connected. Now, it can happen that socket streams are temporarily "at end"
while no data is waiting in the buffer. Then, you would have to reconstruct
someStream to continue. And know about it.

Best,
Marcel



--
View this message in context: http://forum.world.st/Generators-on-Streams-on-Generators-on-Collections-on-tp4889389p4889623.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.


More information about the Squeak-dev mailing list