--- Sean O'Rourke <[EMAIL PROTECTED]> wrote:
> Luke Palmer <[EMAIL PROTECTED]>
> writes:
> 
> > How does one call a parrot Sub from
> > C and get the
> 
> I'd vote for stuffing args into the
> interpreter, calling the sub's invoke()
> method, then digging through the registers
> to pull out the return values (see e.g.
> Parrot_pop_argv in method_util.c, which
> may be outdated). Then again, it would be
> _your_ pain, not mine ;).

The Parrot-C interface could simply come with
some wrapper functions that would do this for
you. I suppose this could be done with a couple
printf/scanf-like functions, except they would
work with pcc parameters instead of strings.
(This would probably tie in to the subroutine
sinatures discussed in 'calling conventions,
variable-length parameter lists'.)

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Reply via email to