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@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