<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<font size="+1"><font face="monospace">Hi guys,<br>
<br>
I signal you that ReferenceStream class documentation is
outdated,<br>
the example it suggests fails. <br>
-----<br>
rr _ ReferenceStream fileNamed: 'test.obj'.<br>
rr nextPut: <your object>.<br>
rr close.<br>
-----<br>
<br>
I changed a bit the doc and added 2 convenience methods that can
be useful.<br>
<br>
---------- Example <br>
myObj _ {123. #('foo' 'bar' #(11 23 45)). }. <br>
ReferenceStream dumpOnFile: ('test1.obj' asFileEntry) object:
myObj . <br>
myObj _ nil. <br>
myObj _ ReferenceStream restoreFromFile: ('test1.obj'
asFileEntry ). <br>
myObj print. "=> #(123 #('foo' 'bar' #(11 23 45))) "<br>
----------<br>
<br>
I ask myself. Dump and restore are extremely useful methods.
Shouldn't we <br>
add these methods to Object itself ? [ Maybe they are already
there;P and I didn't see. ]<br>
<br>
<br>
bye<br>
Nicola<br>
<br>
<br>
</font></font>
</body>
</html>