How rewrite without '::' ?

François Perrad francois.perrad at gadz.org
Wed Nov 19 15:05:06 UTC 2008


the PMC equivalent of the following PIR :
     $P0 = new 'Foo::Bar'
is like :
     INTVAL type = pmc_type(INTERP, const_string(INTERP, "Foo::Bar"));
     PMC *pmc = pmc_new(INTERP, type);

Now, how rewrite
     $P0 = new ['Foo'; 'Bar']

     INTVAL type = pmc_type_p(INTERP, ??? any idea ???);
     PMC *pmc = pmc_new(INTERP, type);

François.



More information about the parrot-dev mailing list