Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Object "Serialization"

From: gjones05:mail:orion at: 23-Feb-2001 5:43

From: Frank Sievertsen
> 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.
Wow, Frank, I asked for a pence and you gave me a pound. Thanks! I can readily appreciate the value of saving the context with the information structure, especially in an application that is generating information dynamically. In order to try it out, I set up some test objects with methods that alter the static information, and, needless to say, it worked great. I feel certain that this approach will come in handy someday. To be honest, though, my REBOL skills are too new to be able to understand *how* you did this, but that will come with time. Thanks! --Scott