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

[REBOL] Re: Object Sea - Work in Progress

From: carl:cybercraft at: 21-Feb-2002 21:57

On 21-Feb-02, Andrew Martin wrote:
> Hi, everyone! > I've been working on storing Rebol objects to a file and retrieving > them again, which I'm calling a "Object Sea" for want of a better > phrase or word.
Nothing to do with what you're trying to achieve Andrew, but "Object Sea" is a term used in the Kosh idea... http://kosh.convergence.org/workinggroups/la1/summary/ Kosh was set up to explore some of Fleecy Moss's ideas, Mr. Moss being currently Vice President of Development at Amiga Inc. Anyway, I'm not too sure, (well, haven't a clue:), what you're trying to do, but I've been storing and receiving REBOL objects by just saving the objects then loading and do-ing them to get them back to their original state. ie...
>> an-obj: make object! [a: make object! [b: does [print "hello"]]] >> an-obj/a/b
hello
>> save %test.txt an-obj >> obj: load %test.txt
== [ make object! [ a: make object! [ b: func [] [print "hello"] ] ] ]
>> obj/a/b
** Script Error: Invalid path value: a ** Near: obj/a/b
>> obj-true: do obj >> obj-true/a/b
hello You probably know you can do that though... -- Carl Read