You can try my 'enpack script, which not only saves a value, but all it's
binding information, too.

Example:
  >> do http://proton.cl-ki.uni-osnabrueck.de/REBOL/enpack.r
  >> use [a] [a: 9 mem: enpack [print a + 1]]
  >> do depack mem
  10
  >> a
  ** Script Error: a has no value
  ** Near: a

Works with objects etc., too.

CU,
Frank

On Thu, 22 Feb 2001, GS Jones wrote:

> Hi,
>
> In a separate thread, a question was asked about serialization of
> objects by Sharriff Aina.  I had a similar question in mind and was
> hoping for an answer.  Since the thread had gotten a bit off topic, I'm
> reposting essentially the same question in this separate thread.
>
> To date, when I want to save an object, I've been using 'save.  Then
> when I need the object back, I use 'read and then 'do the object.
>
> For example:
>
> data: make object! [
>     name: "Joe"
> ]
>
> save %my-object.r data
>
> ;... later i need the object ...
> data: read %my-object.r
> data: do data
> print data/name
> >>
> Joe
>
> It works, but I am wondering is there a "better" way?
>
> --Scott
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to