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

[REBOL] Re: Object Sea - Melt and Freeze

From: cybarite:sympatico:ca at: 23-Feb-2002 10:40

Hi Andrew, I have been sitting in the back of the slow class on this Freezing and Melting. Can you show me a usage example or correct what I have been trying or thinking about how to deploy? I want to have a lot of REBOL objects, structures etc and have them persist with all of their complex inter-relationships and then re-instantiate back to the state when I stored them. I want to freeze them with one REBOL command by invoking your function and re-instantiate (melt) them with one REBOL command. Sounds super so far for freezing and melting to do that. Do I have to collect them with something like: customer: make object! [ id: name: address: status: none ] sea: copy [] append sea don-trump: make customer [name: "Donald Trump" id: 1 address: Trump HQ, New York status: 'active] If I do save %MySea.txt Freeze Sea then start a new instance of REBOL and run %freeze.r then do Sea: Melt reduce load %MySea.txt I have a customer instance available but don't have the association with 'don-trump Can I freeze the name-space too (or whatever you would call it)?