changed #setToEnd
authorStefan Vogel <sv@exept.de>
Tue, 13 Jan 2009 12:52:00 +0100
changeset 11433 bf4acfe61ece
parent 11432 261ae0f98112
child 11434 525e70af011a
changed #setToEnd Fix wrong beavior - previously postion was set to end-1
PositionableStream.st
--- a/PositionableStream.st	Mon Jan 12 23:03:54 2009 +0100
+++ b/PositionableStream.st	Tue Jan 13 12:52:00 2009 +0100
@@ -356,9 +356,11 @@
 !
 
 setToEnd
-    "set the read position to the end of the collection"
+    "set the read position to the end of the collection.
+     #next will return EOF, #nextPut: will append to the stream.
+     (same Behavior as FileStream."
 
-    position := readLimit - 1 + ZeroPosition
+    position := readLimit + ZeroPosition
 !
 
 skip:numberToSkip
@@ -649,7 +651,7 @@
 !PositionableStream class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/PositionableStream.st,v 1.151 2007-06-04 20:10:34 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/PositionableStream.st,v 1.152 2009-01-13 11:52:00 stefan Exp $'
 ! !
 
 PositionableStream initialize!