Ticket #103: invokeselfpatch.patch

File invokeselfpatch.patch, 439 bytes (added by whiteknight, 6 years ago)

add an invoke object as "self" in IMCC

  • compilers/imcc/imcc.y

     
    18511851           $$ = $1; 
    18521852           if ($1->set != 'P') 
    18531853               IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR, "Sub isn't a PMC"); 
     1854           IMCC_INFO(interp)->cur_obj = $1; 
    18541855         } 
    18551856   | target DOT sub_label_op 
    18561857        {