[ANSI-Smalltalk] #contents on <collectionStream>
Richard O'Keefe
ok at cs.otago.ac.nz
Tue Oct 21 01:19:00 BST 2008
On 21 Oct 2008, at 6:27 am, Bruce Badger wrote:
> It would also be good to know what aStream reset; position was. 0 or
> 1. I prefer 0 because, not least, it makes more sense when the
> contents are empty.
5.9.1.4 #position
"Returns the number of sequence values in
the receiver’s past sequence values."
5.9.1.6 #reset
"Sets the receiver’s future sequence values to be
the current past sequence values appended with
the current future sequence values.
Make the receiver’s past sequence values be empty."
It seems clear that the only legal result is 0, as you wish.
More information about the ANSI-Smalltalk
mailing list