Le 13/3/15 09:01, Marcus Denker a écrit :

ClassDescription>>superclass: aSuperclass layout: aLayout
        layout := aLayout.
        
        self
                superclass: aSuperclass
                methodDictionary: MethodDictionary new
                format: aLayout format.
        self halt.
        instanceVariables := layout instanceVariables asArray

is (in practice) the only place where ‘instanceVariables’ is set.

We need to remove the instanceVariables from ClassDescription and rely on the 
layout object.
This is on my list for Pharo5…

#instanceVariables does not even return variables, but strings…

And it is fun that #instanceVariables and #instVarNames are similarly named yet 
different...

Marcus
I remember that I added some protocols and I paid attention that it was clear that we would either manipulate a string or the instance variable because I was thinking that one day we would get first class variable. Now it was probably not done everywhere.

Stef


        Marcus






Reply via email to