petdance/scratch — Issue #253: Object.find_method fails if PIR 'find_method' vtable override returns null
Author: petdance
Created: 2011-11-01 04:25:27+00:00
State: open

If I override the 'find_method' vtable for a class, the object.pmc code correctly locates the override and calls it.

However, the same code assumes that any overridden find_method will automatically succeed.

This is inconsistent with the way the default behavior is implemented, which allows a class to return null and then passes on to the next class in the MRO.

(I can see where it might be desirable to "block" method lookup from parent classes. But I think it's more likely that some kind of AUTOLOAD behavior is going to match-these-names or pass to the ancestor. Blocking can be implemented with a sub that dies, or Undef.)