PositionnableStream>>peekFor: not standard

Bert Freudenberg bert at freudenbergs.de
Thu Mar 1 14:57:21 UTC 2007


On Mar 1, 2007, at 15:44 , Ron Teitelbaum wrote:

> By the way match is not really the same:
>
> ('abc' copy readStream) match: 'b'; next => $c
>
> Since 'a' is not matched it advances until we find the collection.   
> This is
> really different from peek = $a since it flys past the next element  
> to find
> 'b'.

Ah, you're right.

- Bert -





More information about the Squeak-dev mailing list