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