Jeff Horwitz wrote:
On Mon, 14 Mar 2005, William Coleda wrote:


How does one call a PIR-defined sub from C?


use the Parrot_call_sub_* API.

Ah, thank you, much better.

Now, given the perldoc for src/extend.c,

      "void* Parrot_call_sub(Parrot_INTERP interpreter, Parrot_PMC sub, const
      char *signature, ...)"
          Call a parrot subroutine the given function signature. The first
          char in "signature" denotes the return value. Next chars are argu-
          ments.

          The return value of this function can be void or a pointer type.


If only the first character is the return value, how does one deal with subroutines that return multiple values?

Reply via email to