[squeak-dev] ReadStream API

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Tue Dec 8 13:53:24 UTC 2009


Other reasons I'd like a rewrite of this big ball of...

(ReadStream on: 'a barbecue' from:3  to: 5) next: 8.
"-> 'bar'  Fine, next: doesn't raise an Error because understood as
nextAvailable: (this is questionable, but I admit it)"

(ReadStream on: 'a barbecue' from:3  to: 5) reset; next: 8.
"-> 'a bar'  Hmm, not the least surprising "

(ReadStream on: 'a barbecue' from:3  to: 5) upTo: $u.
"-> 'barbec'  Hem, me start laughing"

(ReadStream on: 'a barbecue' from:3  to: 5) upToEnd.
"-> 'barbecue' at least, this is consistent with previous shit"

(ReadStream on: 'a barbecue' from:3  to: 5) size. "Guess what... 3
like next: ? 8 like upToEnd ?
"-> 5 Oh no, ROTFL"

Question du jour: is there any code relying on these "features" ?
Otherwise, i can backport some changes from Xtream.

Nicolas



More information about the Squeak-dev mailing list