PositionnableStream>>isEmpty is wrong

Damien Cassou damien.cassou at gmail.com
Tue Feb 27 15:19:15 UTC 2007


I have implemented the fix (very simple), 1 test for ReadStream,
WriteStream and ReadWriteStream. I will open a new bug on mantis and
commit the changeset.

Correction:

isEmpty
  "Answer whether the receiver's contents has no elements."

  "Returns true if both the set of past and future sequence values of
the receiver are empty. Otherwise returns false"

  ^ self atEnd and: [position = 0]

Comments ?

-- 
Damien Cassou



More information about the Squeak-dev mailing list