SmartRefStream broken?

Jon Hylands jon at huv.com
Tue Nov 14 20:47:11 UTC 2006


On Tue, 14 Nov 2006 14:40:46 -0600, Aaron Reichow <revaaron at bitquabit.com>
wrote:

> My first question- are we using it wrong?  Any other ideas?

The way I use them is this:

(writing) - same as you do
(reading)

	| file object |
	file := FileStream readOnlyFileNamed: 'data.obj'.
	object := file fileInObjectAndCode.
	file close.
	^object

It looks weird, but it works...

Later,
Jon

--------------------------------------------------------------
   Jon Hylands      Jon at huv.com      http://www.huv.com/jon

  Project: Micro Seeker (Micro Autonomous Underwater Vehicle)
           http://www.huv.com



More information about the Squeak-dev mailing list