May 23, 2014
5:58 p.m.
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 | stream := (String new:20) writeStream. aTime := Time now. (aTime storeOn:stream) = (aTime class readFrom:(stream contents)) â cut here --- To the question then. Assuming the second case isnât wrong in some fashion I donât understand, is it the case that storeOn:/readFrom: is supposed to be symmetrical for all classes? I ask it that way because there are a couple of Kernel classes where Iâve seen this to not be the case. TIA, âRick