> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 29, 1999 10:13 AM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Constructor semantics? Re:
> wouldn't self work?
> >> obj: make object!
> val-1: "this is me."
> print-val: func [] [print self/val-1]
> ]
> >> obj/print-val
> this is me.
> >>
Hi, well this works but you have to keep the stuff in sync. So
the problem isn't to put a name into an object but to refer to
the Rebol-used-name of the object.
obj: make object
[
append all-objects-we-have self/name
]
This will append 'obj to all-objects-we-have, later than I can
do:
forall objs in all-objects-we-have
[
do objs
]
Robert