Does Squeak stream objects?

jarvisb at timken.com jarvisb at timken.com
Wed Jan 14 12:40:56 UTC 1998


Check the Object Storage category.  It may not be everything you want
but perhaps it's a start.
*************************** Attachment ***********************************
Date: 14 January 1998, 00:54:34 EST
>From  Will Hartung                                   vfr750   at INTERNET
      vfr750 at netcom.com
                                                     squeak   at INTERNET
      squeak at cs.uiuc.edu
To:                                                squeak   at INTERNET
      squeak at cs.uiuc.edu
cc:                                                recipien at INTERNET
      recipient.list.not.shown:@

Reply-To                                                 squeak   at INTERNET
      squeak at cs.uiuc.edu
Subject: Does Squeak stream objects?

Resent-Date: 14 Jan 1998 05:54:33 -0000
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Resent-Message-Id: <"i4j3pD.A.iND.TMFv0"@jerry>
X-Loop: squeak at cs.uiuc.edu
Precedence: list

On the NeXT, they had a routine called WriteObject that would use an
objects write: method to write itself out to a binary stream.

It seemed fairly crafty, as you typed each element of the class you
were writing (int, char *, object id).

If you happened to have a List object, and did a WriteObject on it, it
would write the List, as well as its contents out to the stream.

When you performed a ReadObject, it would recreate everything that was
written out.

Does Squeak have a similiar process built in? Does it handle
cycles/graphs?

Thanx,

Will Hartung
(vfr750 at netcom.com)





More information about the Squeak-dev mailing list