Jonathan Worthington wrote:
While that is fine, I noticed that add_method and add_vtable_override are missing this "has the class been instantiated" test. Putting it in, however, makes some tests fail. Am I right in thinking the tests are wrong and need to be fixed to clone the (already instantiated) class before adding the new methods? See for example t/oo/methods.t.
Which tests are failing with the updated code? Could you attach your changes as a patch so we can experiment?
Allison