[Glass] PositionableStream atEnd

BrunoBB via Glass glass at lists.gemtalksystems.com
Mon Dec 26 15:09:10 PST 2016


Hi All,

After debugging a bug in my application i finally reached
"PositionableStream atEnd".

In Dolphin Smalltalk:
stream := ReadStream on: #(1 2 3 4).
stream position: 4.
stream atEnd. "answer <true>" "Dolphin 7"

In GemStone Smalltalk:
stream := ReadStream on: #(1 2 3 4).
stream position: 4.
stream atEnd. "answer <false>" "GemStone 3.3.0"

The GemStone behavior seems to be odd. Because atEnd is [false] then #next
is possible. But there is no next.
Which is the login behind this ? :)

regards
bruno



--
View this message in context: http://forum.world.st/PositionableStream-atEnd-tp4928156.html
Sent from the GLASS mailing list archive at Nabble.com.


More information about the Glass mailing list