PositionnableStream>>back behavior?

Damien Cassou damien.cassou at gmail.com
Fri Apr 6 15:08:40 UTC 2007


Hi,

I don't really understand why #back goes two step backward:

stream := ReadStream on: 'abc' copy.
stream next.
stream next.
stream peek.       ==> $c
stream back.       ==> $a

If the following character is $c then the previous one should be $b.
Don't you think so?

Bye

-- 
Damien Cassou



More information about the Squeak-dev mailing list