[ANSI-Smalltalk] #contents on WriteStream

Paolo Bonzini bonzini at gnu.org
Thu Oct 16 08:14:45 BST 2008


In the standard, the definition of #contents for <WriteStream> comes
from <collectionStream> so that this:

   (WriteStream on: String new) nextPutAll: 'abc'; skip: -1;
      contents

should "return a collection that contains the receiver's past and future
sequence values, in order", i.e. 'abc'.  To me it makes more sense that
it returns 'ab'.

Opinions?

Paolo



More information about the ANSI-Smalltalk mailing list