[Glass] PositionableStream atEnd
Dale Henrichs via Glass
glass at lists.gemtalksystems.com
Mon Dec 26 16:20:15 PST 2016
Bruno,
The behavior of PositionableStream in GemStone is not compatible with
other Smalltalk implementations, specifically in the way that position:
is handled ...
If you want to be compatible with other Smalltalk implementations, use
the *Portable stream classes:
--------------------
PositionableStreamPortable
ReadStreamPortable
WriteStreamPortable
ReadWriteStreamPortable
FileStreamPortable
TranscriptStreamPortable
Dale
On 12/26/16 3:09 PM, BrunoBB via Glass wrote:
> 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.
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
More information about the Glass
mailing list