[sbe-discussion] Re: Chapter on streams - bad analogy, or broken implementation?
stephane.ducasse at free.fr
Tue Dec 4 12:04:21 MET 2007
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
On 4 déc. 07, at 11:50, Kim Sullivan wrote:
> I have been working on some parsing stuff for a school project. I
> had read the chapter on streams, and it seemed perfectly clear to
> me that
> the "pointer" is between elements, and on "on" an element.
> 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
> of previous and peekPrevious, keeping the back methods for backwards
> In any case, I think that the current behaviour of the back methods
> be mentioned in SBE (in the version of the book that I have, they
> mentioned at all).
> Kim Sullivan
> Sbe-discussion mailing list
> Sbe-discussion at iam.unibe.ch
More information about the Sbe-discussion