[ENH] Use of EndOfStream (sm) (ducasse)

Bill Schwab BSchwab at anest.ufl.edu
Tue Feb 17 18:41:35 UTC 2004


Stef,

> Sorry so then what do you suggest?
> Is this a bug in boris changes?

Well, yes, though I would prefer to categorize it as "too little of a good thing".  In particular, I maintain that both of the following:

'hello' readStream next:20.

| in |
in := 'hello' readStream.
20 timesRepeat:[ in next ].

should signal an error, with #nextAvailable: (an implementation of which for socket streams is on SM) to handle the case which one is willing to accept fewer than the requested number of objects from the stream.

Bill




Wilhelm K. Schwab, Ph.D.
University of Florida
Department of Anesthesiology
PO Box 100254
Gainesville, FL 32610-0254

Email: bills at anest4.anest.ufl.edu
Tel: (352) 846-1285
FAX: (352) 392-7029





More information about the Squeak-dev mailing list