Alek Storm (via RT) wrote:
This patch adds the add_attr, rem_attr, and rem_attr_str vtable methods. These will come in handy for Ruby's metaclasses or Smalltalk's class objects. The only PMC currently affected by this is ParrotClass, and the rem_attr and rem_attr_str methods are still unimplemented.
It's more of a design question than a code question. Why make add_attr, rem_attr, and rem_attr_str vtable methods rather than simply methods on the Class class (the metaclass)? They only affect ParrotClass, which means we're defining vtable entries for functionality that will be used by one PMC type.
Allison