Luke Palmer <[EMAIL PROTECTED]> wrote:
> How does one call a parrot Sub from C and get the return value(s)?  Is
> it even possible, given CPS, to do this generally?  If not, how can I
> check when it is?

Good question. Its very similar to classes/Eval.pmc:invoke().
You would do:
- call runops_int(interp, offset)
- returning from the sub is by invoke'ing the return continuation with
  address 0, which you have put in P1
- param passing is like PCC (pdd03)

> Thanks,
> Luke

leo

Reply via email to