#713: Too little MMD? i_add doesn't know about subclasses.
-------------------+--------------------------------------------------------
 Reporter:  coke   |       Owner:             
     Type:  bug    |      Status:  new        
 Priority:  major  |   Milestone:             
Component:  core   |     Version:  trunk      
 Severity:  high   |    Keywords:  tcl blocker
     Lang:         |       Patch:             
 Platform:         |  
-------------------+--------------------------------------------------------

Comment(by fperrad):

 Or you could add this code in src/pmc/tclint.pmc

 {{{
     MULTI void i_add(TclInt value) {
         const INTVAL result = SELF.get_integer()
                             + VTABLE_get_integer(INTERP, value);
         SELF.set_integer_native(result);
     }
 }}}

 See PMC in WMLScript (or Lua) for a full example.

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