[BUG] Class PositionableStream - Method isEmpty

Fernando Embrioni feremb at yahoo.com
Tue Feb 19 00:20:49 UTC 2002


People. I'm new in this list.

I hope this can be helpfull for your work.

I find a bug (At the moment I don't know if it is in
Squeak or in my brain).

I´m working with the following version of Squeak
Squeak3.0 of 4 February 2001 (latest update: #3545).

I began with a simple instantiation of a ReadStream
object, like this

   | example |
   example := ReadStream on: #('uno' 'dos' 'tres').

Well. When I ask to the "example" object if it is
empty or not, it tells me that it's empty (Of course
I'm waiting the opposite)

   example isEmpty --> true

I went to the source of "PositionableStream" class
which implements the method for the selector
"isEmpty". There I saw the following

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

	   ^position = 0

Here I stopped, because (Guided by the name of the
instance variable) I expected this comparison to be
the following

	   ^readLimit = 0

Regards.

Fernando

PD: Can someone tell me where is the method for
"basicNew" implemented?




Conectate a Internet GRATIS con Yahoo! Conexión: 
http://conexion.yahoo.com.ar



More information about the Squeak-dev mailing list