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




_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to