> On 8 Sep 2019, at 09:17, ducasse <[email protected]> wrote:
>
> Hi
>
> I’m fixing the class definition parser and I have a question.
>
> I’m stabilizing the API of CDSlotNode
>
>
> 1 ‘first' => LazyClassVariable default: 5.
> 2 ’second' => InstanceVariableSlot.
> 3 ‘instVar3’
>
> Here is a proposal
>
> slotdefinition(3) name ? variable name
> >>> ’instVar3'
>
> slotDefinition(2) slotClass?
> >>> InstanceVariableSlot
Right now I return a symbol instead of the class but I could return a class.
Now I would like to avoid to blindly think that we have a single namespace.
So returning a class implies to be sure that the definition is parsed in the
same environment
than the class it refers and to me this is a constraint I do not like.
So I will return a symbol.
Let me know what you think.
> slotDefinition(1) initializationMessage
> >>> 'default: 5’
> or better
> >>> Node(default: 5) if it exist
Now I do not know what to do: because I can create a message with an empty
receiver.
Because
>
> S.
>
>
>