> Hmm, I thought attributes are per class and all instances are sharing them?

PDD 15 says:

       Attribute
           An attribute is a slot in an object that contains a
           value, generally a PMC. (Containing non-PMCs leads to
           interesting garbage collection issues at the moment)
           Attributes are referenced either by slot number or by
           class name/attribute name pairs. (At least conceptu-
           ally)

           Attributes are set on a class-wide basis, and all the
           objects of a class will have the same set of
           attributes.

I've never really used them because of this statement.
Does this mean that the attributes are shared per class, but the values
are different between the instances? Maybe I misinterpreted it because my 
english is bad, but I assumed that "the same set of attributes" means that 
the "keys" as well as the values are shared between all instances of that 
class.

jens

Reply via email to