PositionnableStream>>skip: not standard (bug 6353)

Damien Cassou damien.cassou at gmail.com
Wed Mar 21 12:33:23 UTC 2007


2007/3/21, Klaus D. Witzel <klaus.witzel at cobss.com>:
> If the number of objects skipped with #skip: identifies the number of
> objects returned with #next: then I'd say that both are in sync.

Currently, #skip: raises an error if the parameter makes the stream
goes after the end. So I don't think they are in sync.

(ReadStream on: 'test') next: 6     => 'test'
(ReadStream on: 'test') skip: 6     => ERROR

-- 
Damien Cassou



More information about the Squeak-dev mailing list