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

[REBOL] Re: Rebol Enhancement Request <object>/Parent

From: agem::crosswinds::net at: 16-Feb-2001 16:40

If you make an object from an object in an object, who is parent? a: make object![] b: make object![ c: make a[] ] b/c/parent ? But it would be nice, also for a: func[b][ make object! [b: parent/b] ] with function as parent. Currently the reducing of code is done with inner object and argument. Since inner objects are not copied by make. See system/schemes/http/handler or /view, where the face is an argument also to its own face-functions. Some more work (automatics?), but has an advantage: you can make a set of functions and plug it into different objects from one source, like system/view/vid/vid-feel . With »conventional« oops you have to be accurate with the inheritance-order, with argument instead of self / parent you are more free.
>>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<
Am 16.02.01, 03:26:54, schrieb "Andrew Martin" <[Al--Bri--xtra--co--nz]> zum Thema [REBOL] Rebol Enhancement Request <object>/Parent: