[REBOL] Q on Array of Objects Re:(8)
[EMAIL PROTECTED] wrote: Implementation: make object! [ s: "This is s - a string" f: func [hello] [s] ] Interface: make object! [ ; f: get in Implementation 'f ; Copies Implementation/f Actually, you get a reference to that function. You will not copy it. obj: make object! [ [f: func [] [] [] b: get in obj 'f print mold :b func [][] insert second :b [print "Hello"] == [] print mold :b func [][print "Hello"] print mold obj make object! [ f: func [][print "Hello"] ] obj/f Hello b Hello Ciao, /Gabriele./ o) .-^-. (--o | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ | o) `-v-' (--o
[REBOL] Q on Array of Objects Re:(8)
Hi Andrew, Those were the words of [EMAIL PROTECTED]: Hi, Ingo. Caution - none of this works as expected. ... Ahhh, so it wasn't me :-) ; Something like this in REBOL would be nice: C!: make class! [ s: "a string" m: method [parameter] [s] ] Cc: make C! [ m: overide method [blah] [join s blah] ] How about sending this as an enhancement request? I'm afraid Bo will install a spam filter against me, if I continue mailing enhancement requests ;-) Ingo -- _ ._ ingo@)|_ /| _| _ We ARE all ONE www._|_o _ _ ._ _ www./_|_) |o(_|(/_ We ARE all FREE ingo@| |(_|o(_)| (_| http://www.2b1.de/Rebol/ ._| ._|