Re: [Pharo-users] storeOn:/readFrom: symmetrical?

2014-05-26 Thread Rick Kitts
, 2014 at 11:15:43 PM, stepharo (steph...@free.fr) wrote: On 23/5/14 19:58, Rick Kitts wrote: Hi. A basic question I hope someone can answer. This works: — cut here --- | stream aInt | stream := (String new:20) writeStream. aInt := 23. (aInt storeOn:stream) = (aInt class readFrom:(stream contents

[Pharo-users] storeOn:/readFrom: symmetrical?

2014-05-23 Thread Rick Kitts
Hi. A basic question I hope someone can answer. This works: — cut here --- | stream aInt | stream := (String new:20) writeStream. aInt := 23. (aInt storeOn:stream) = (aInt class readFrom:(stream contents)) — cut here --- This doesn’t (generates an error): — cut here --- | stream aTime | strea