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

[REBOL] Embedded objects - deviation

From: james:mustard at: 13-Mar-2003 15:35

This bought to mind another possible scenario: If Bob has a dog called Rex who has a catfriend called Suzy, can the dog be made to belong to Bob and the cat linked not belonging (the cat may have other friends) to BobsDog? Preferrably in a short elegant sort of way ;) Bob: make object! [name: "Bob"] BobsDog: make object! [name: "Rex"] SuzyCat: make object! [name: "Suzy"] I envisaged the object to be able to reference suzy as: SuzyCat/name Or Bob/BobsDog/SuzyCat/name A one liner such as Sunanda's bob & dog example would be nice if possible - also the ability to go n levels deep with the object inclusions. James.