About PositionableStream class>>on:from:to

Damien Cassou damien.cassou at gmail.com
Thu Aug 2 11:08:09 UTC 2007


Hi,

I do not understand the behavior of #on:from:to:

(ReadStream on: 'abcdefgh' from: 4 to: 7) contents.    ==>  'abcdefg'
  "really strange"
(PositionableStream on: 'abcdefgh' from: 4 to: 7) contents.       ==>
'defg'      "which sounds normal to me"

And PositionableStream is an abstract class whereas ReadStream is concrete.

-- 
Damien Cassou



More information about the Squeak-dev mailing list