[ANSI-Smalltalk] #contents on WriteStream

Bruce Badger bwbadger at gmail.com
Thu Oct 16 19:40:25 BST 2008


On 16/10/2008, Paolo Bonzini <bonzini at gnu.org> wrote:
>    (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'.

In the face of it, 'ab' makes sense in this case, but what would you
return for a write stream on a file or a socket ... an exception or
something else?

-- 
Make the most of your skills - with OpenSkills
http://www.openskills.org/



More information about the ANSI-Smalltalk mailing list