2007/4/6, tim Rowledge <
[hidden email]>:
>
> 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.
Ok :-) I didn't know there were a notion of current element. I thought
a stream was always between two elements; and there is no notion of
current in ANSI Smalltlalk.
Thank you
--
Damien Cassou