[squeak-dev] readStream question

Daniel Klein danielkleinad at gmail.com
Sun Jan 25 13:29:41 UTC 2009


The amount, 5, IS larger than the number of objects, 4. So the result should
be 'undefined', yet it returns the receiver, 'four'. And I don't believe the
string 'four' has any 'future' of getting larger.
I'm somewhat new to all this.

Daniel Klein


On Sat, Jan 24, 2009 at 10:30 PM, James Foster <Smalltalk at jgfoster.net>wrote:

> Not a bug.
> "The result is undefined if amount is larger than the number of objects in
> the receiver's future sequence values." (ANSI 5.9.2.4)
> James Foster
>
> On Jan 24, 2009, at 7:23 PM, Daniel Klein wrote:
>
> Why does
> 'four' readStream next: 5
>
> not throw an exception like it does in VW?
>
> Is this a buglet?
>
> Daniel Klein
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20090125/759638c5/attachment.htm


More information about the Squeak-dev mailing list