[sbe-discussion] Re: Chapter on streams - bad analogy, or broken implementation?
stephane ducasse
stephane.ducasse at free.fr
Tue Dec 4 12:04:21 MET 2007
Hi kim
can you check if this is fixed in 3.10?
because it seems that damien fixed all the buggy stream methods but
may be only for 3.10
Stef
On 4 déc. 07, at 11:50, Kim Sullivan wrote:
> Hello,
>
> I have been working on some parsing stuff for a school project. I
> already
> had read the chapter on streams, and it seemed perfectly clear to
> me that
> the "pointer" is between elements, and on "on" an element.
> Unfortunately,
> that assumption doesn't hold when you start using back and peekBack
> - those
> two methods work as if the position was on the item that the
> previous next
> returned, and return the item that is before that. At first I
> thought that
> the way it is described in SBE is wrong, but now I think that the back
> methods are broken, and wrote my own implementations, previous and
> peekPrevious. The back methods don't seem to be used much anyway,
> at least
> in the image that I have which is based on 3.7 I think, and the
> code that
> uses them could be fixed.
>
> My question is - how should I proceed? Should I report a bug in
> Squeak so
> that the back method gets fixed, or should I submit my own
> implementations
> of previous and peekPrevious, keeping the back methods for backwards
> compatibility?
>
> In any case, I think that the current behaviour of the back methods
> should
> be mentioned in SBE (in the version of the book that I have, they
> aren't
> mentioned at all).
>
> Regards,
> Kim Sullivan
>
> _______________________________________________
> Sbe-discussion mailing list
> Sbe-discussion at iam.unibe.ch
> https://www.iam.unibe.ch/mailman/listinfo/sbe-discussion
>
More information about the Sbe-discussion
mailing list