#1645: Request for another overload to 'not' opcode.
-----------------------+----------------------------------------------------
 Reporter:  shockwave  |        Type:  RFC   
   Status:  new        |    Priority:  normal
Milestone:             |   Component:  none  
  Version:  2.3.0      |    Severity:  medium
 Keywords:             |        Lang:        
    Patch:             |    Platform:        
-----------------------+----------------------------------------------------

Comment(by plobsing):

 It is not that easy. The "logical_not" vtable, around which not_p_p is
 based, returns a PMC. So the vtable, not the op, is doing the boxing.

 To avoid a box operation, we'd need to add a new vtable and a new op.
 We're trying to cut down on bloat of both op and vtable sets, so -1 to
 this course of action.

 A case could be made that logical_not should return an intval (or maybe
 even be removed in favour of using get_bool).

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1645#comment:1>
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