pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Suspicious logic in RBVariableTransformation >> definingClass

Open Ducasse opened this issue 2 years ago • 0 comments

RBVariableTransformation >> definingClass

	^ isClassVariable 
		ifTrue: [ super definingClass theMetaClass ]
		ifFalse: [ super definingClass ]

To me a classVariable is defined on the instance side not the metaclass. Now it depends what isClassVariable is saying (a classVariable or an instance variable of the class side).

Probably the last one based on the definition of definingClass

Ducasse avatar Jun 13 '22 01:06 Ducasse