#OTHER by exept
authorClaus Gittinger <cg@exept.de>
Mon, 26 Aug 2019 23:13:04 +0200
changeset 24647 b23b8cc72aa6
parent 24646 7e6d23d0f41f
child 24648 a19f893311d9
#OTHER by exept changed: #nextPut: returns its argument
WriteStream.st
--- a/WriteStream.st	Mon Aug 26 23:12:15 2019 +0200
+++ b/WriteStream.st	Mon Aug 26 23:13:04 2019 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
 	      All Rights Reserved
@@ -485,7 +483,7 @@
                         __INST(readLimit) = __mkSmallInteger(pos);
                     }
                     __INST(position) = __mkSmallInteger(pos);
-                    RETURN ( self );
+                    RETURN ( anObject );
                 }
             } else if (cls == @global(ByteArray)) {
                 if (__isSmallInteger(anObject)
@@ -526,6 +524,7 @@
     ] ifFalse:[
         WriteError raiseErrorString:'write beyond writeLimit'
     ].
+    ^ anObject
 !
 
 nextPutAll:aCollection