[sbe-discussion] Error on page 226 of current book (2008/05/15) ?

Ian J Cottee ian at cottee.org
Wed Aug 27 09:05:26 MEST 2008


Hi

First of all many thanks for SBE. I've been reading it carefully over
the last couple of weeks (printed a copy out via Lulu) and have found
it VERY useful.

I think there's an error that's not listed in the current Errata.

 Page 226
 History>>goBackward
 self canGoBackward ifFalse: [self error : 'Already on the first element'].
 self skip: --2.
 ↑ self next.

Those last two lines should refer to stream not self I believe. i.e.

 History>>goBackward
 self canGoBackward ifFalse: [self error : 'Already on the first element'].
 stream skip: --2.
 ↑ stream next.

Once again - many thanks for the resource. I'm recommending it to everyone !

Ian



More information about the Sbe-discussion mailing list