#2042: Deprecate VTABLE_can
-------------------------+--------------------------------------------------
 Reporter:  whiteknight  |       Owner:  cotto
     Type:  deprecation  |      Status:  new  
 Priority:  normal       |   Milestone:  3.6  
Component:  core         |     Version:  3.1.0
 Severity:  medium       |    Keywords:       
     Lang:               |       Patch:       
 Platform:  all          |  
-------------------------+--------------------------------------------------
 VTABLE_can is defined in two places: object.pmc and default.pmc. In both
 cases, it performs exactly this operation:

 {{{
 return !PMC_IS_NULL(VTABLE_find_method(interp, self, name));
 }}}

 Also, VTABLE_can is not able (yet) to be overridden from PIR code, which
 means that the vast majority of classes written by users will always have
 this same exact default behavior.

 I suggest we deprecate and remove VTABLE_can. The "can" PIR op can remain,
 but should call VTABLE_find_method directly.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/2042>
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