On 02/02/2011 11:24 PM, Dmitry Matveev wrote:
+    nextAvailable: anInteger [
+        | data stream read |
+        data := Array new: anInteger.
+        stream := WriteStream on: data.
+        read := self underlyingStream nextAvailable: anInteger putAllOn: 
stream.
+        ^data copyFrom: 1 to: read
+    ]

Thanks for the patch!

But the above can be just

    nextAvailable: anInteger [
        ^self underlyingStream nextAvailable: anInteger
    ]

no?

Paolo

_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to