> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 04, 1999 9:03 PM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Constructor semantics? Re:(7)

> 1) Constructing a value
> a: make block! [1 2 3]
>
> 2) Assigning a value
> b: make block! []
> insert b make block! [1 2 3]
> c: first b
>
> 'a and 'c stand in the exact same relationship to their
> respective values.

Hi Elan, that's right and you now can use two different words to
get the same value. But these words are different and what I
would like to do is to have a way to programmatically access the
literal represnetation of a word without writing the word. I now
it sounds a bit strange but the following would be usefult:

self/name = literal representation of the word used for the
object representing self.

> [snipped long and good discussion of the topic]

> With respect to the problem you are trying to solve, what do
> you lose by doing the following?
>
> all-my-objects: make block! []
>
> obj1: ... append all-my-objects self
> obj2: ...
> ...
> objN: ...
>
> do-something: func [] [
>       foreach obj all-my-objects [
>               do obj/Create
> ...

I see one problem here. I give some more code to show:

obj1: make myObject!
[
        Create: func[] [...]
        Print: func[] [...]
]

Now, how and when do I execute the append statement above? Can I
write:

obj1: append all-my-objects self make myObject!

The problem I have is that there is no code executed when
instantiating obj1: only, the make statement...

Robert M. Muench, Karlsruhe, Germany
    ==> ask for PGP public-key <==

  When do you want to reboot today?

Use the free portable GUI Library
OpenAmulet from http://www.openip.org

Reply via email to