#1487: Object.find_method fails if PIR 'find_method' vtable override returns 
null
-----------------------------+----------------------------------------------
 Reporter:  Austin_Hastings  |       Owner:       
     Type:  bug              |      Status:  new  
 Priority:  normal           |   Milestone:       
Component:  none             |     Version:  2.1.0
 Severity:  medium           |    Keywords:       
     Lang:                   |       Patch:       
 Platform:                   |  
-----------------------------+----------------------------------------------
 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.)

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1487>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to