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

[REBOL] How do I save objects so they inherit on reload

From: bobr:dprc at: 22-Jan-2001 17:40

At 08:47 AM 1/21/01 -0800, [jeff--rebol--net] wrote:
> Using parse block, it's pretty easy to make little > formatting dialects to experiment with. Someone might make > a dialect that just handles the many numerous ways to FORM, > MOLD and print dates and times.
in an unrelated (to dates) matter I would like to play with [which ever] things so that 'save and 'mold do not print object! as the datatype every time. specifically I would like to modify 'save or 'mold to be able to inherit from a named type other than object! on a load. I thought of doing a 'replace on "object!" after a 'mold but that breaks down for internal sub- object!(s) . perhaps I need to make up my own 'mold function (but can I guarantee 'save will call it?) And further, what would my own mold function look like? Would somebody show me how to write my own 'mold which, unless the object implements a particular /refinement, calls the original system one? Did I miss a lesson on dialecting? for those of you wondering if I am gonna grade the responses to this one the answer is no. I do want others to know how to grow your own 'mold (pun - ouch!) that inherits behavior from the system. I can tell some others here were trying similar things. I have been writing an internal corporate note on it and was waiting for somebody to suggest dialecting.