From: Frank T. <ft...@ne...> - 2001-11-04 23:07:38
|
Shae Erisson, at 11:55 +0200 on 2001-11-04, wrote: A metaclass specifies how classes work. Python has multiple inheritance, Java does not. A metaclass object in Python could specify that Python cannot do multiple inheritance. A particular metaclass instance could let Python have only instances and instance inheritance/delegation like Javascript, NewtonScript, and Self. It helps a little. Metaclasses are such a divergence from the concept of statically-defined classes, though, that it might take me a while to digest what magic you can do with them. -- Frank Tobin http://www.neverending.org/~ftobin/ |