[ANSI-Smalltalk] #contents on <collectionStream>
Paolo Bonzini
bonzini at gnu.org
Sat Oct 18 23:00:20 BST 2008
cstb wrote:
> At 12:14 AM 10/16/2008, Paulo wrote:
>> 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?
>
>
> It would be nice if the standard was
> for <collectionStream> to provide both
>
> contents -> upTo: readLimit
> and
> currentContents -> upTo: position
Let's try however to follow current practice and not invent new selectors.
Paolo
More information about the ANSI-Smalltalk
mailing list