PositionnableStream>>back behavior?
tim Rowledge
tim at rowledge.org
Fri Apr 6 15:39:33 UTC 2007
On 6-Apr-07, at 8:08 AM, Damien Cassou wrote:
> 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?
If current char is$b, then next is $c and previous is $a.
tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Useful random insult:- If you stand close enough to him, you can hear
the ocean
More information about the Squeak-dev
mailing list
|