[Pharo-project] about classVar
Hi to my stupefaction I discovered that the classVariables of a class are not the same as the ones of its metaclass. TheRoot classVarNames ~= TheRoot class classVarNames Does any body have some ideas why this is like that? For me this is a conceptual bug. Stef
On Sun, Oct 12, 2008 at 10:10:38PM +0200, St?phane Ducasse wrote:
Hi
to my stupefaction I discovered that the classVariables of a class are not the same as the ones of its metaclass.
TheRoot classVarNames ~= TheRoot class classVarNames
Does any body have some ideas why this is like that?
Metaclasses don't have class variables
For me this is a conceptual bug.
I think the conceptual bug is that TheRoot class classVarNames does not raise a DNU -- Matthew Fulmer -- http://mtfulmer.wordpress.com/
But you can access a classVar from a class method. So the Smalltalk MOP is quite strange and hackish. Stef
Hi
to my stupefaction I discovered that the classVariables of a class are not the same as the ones of its metaclass.
TheRoot classVarNames ~= TheRoot class classVarNames
Does any body have some ideas why this is like that?
Metaclasses don't have class variables
For me this is a conceptual bug.
I think the conceptual bug is that TheRoot class classVarNames does not raise a DNU
-- Matthew Fulmer -- http://mtfulmer.wordpress.com/
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (2)
-
Matthew Fulmer -
Stéphane Ducasse