--- a/ReadStream.st Thu Mar 01 20:36:00 2018 +0100
+++ b/ReadStream.st Thu Mar 01 20:44:24 2018 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
"
COPYRIGHT (c) 1988 by Claus Gittinger
All Rights Reserved
@@ -196,9 +198,19 @@
!
size
- "return the number of remaining elements in the streamed collection."
+ "return the number of remaining elements in the streamed collection.
+
+ Notice: VW and Squeak seem to return the overall size here,
+ which is an incompatibility that should be fixed.
+ However, fixing seems to break some existing applications,
+ so this will be delayed for some time...
- "/ will change back soon for VW and Squeak compatibility.
+ ST/X provides two methods which are more explicit: collectionSize and remainingSize.
+ Change the sender to use either one, but no longer #size"
+
+ self breakPoint:#exept info:'check size vs. remainingSize issue in ReadStream'.
+
+ "/ will change soon for VW and Squeak compatibility.
"/ ^ self collectionSize.
^ self remainingSize