[Newbies] writing to a stream after close

Mark Volkmann mark at ociweb.com
Fri Oct 3 21:23:05 UTC 2008


Why is it that when I do a "print it" on all the code below, it  
outputs 'foobar'?
Shouldn't the writing of 'bar' fail because I've closed the stream?

ws := WriteStream on: ''.
ws nextPutAll: 'foo'.
ws close.
ws nextPutAll: 'bar'.
ws contents

---
Mark Volkmann






More information about the Beginners mailing list