Calling functions whose signature/arguments are only known at runtime
Jonathan Leto
jaleto at gmail.com
Tue Mar 16 19:53:13 UTC 2010
Howdy,
On Tue, Mar 16, 2010 at 12:19 PM, Andrew Whitworth
<wknight8111 at gmail.com> wrote:
> My initial thought, and this isn't implemented quite yet (though we
> could put the fire back to my feet to complete it) is to create a
> CallContext PMC with all the arguments you want and pass that in.
This sounds interesting, what do we get if we go this route? Does it
make certain things easier/faster/more portable?
>
> Putting arguments into a ResizablePMCArray or Hash and using :flat
> (Signature "Pf") would similarly resolve the problem.
Good idea! I think that we could make stuff work at the PIR level
going that route, but I don't think HLL's would work using that
method. But it gives us a path forward, which is very good. I still
think that Parrot_ext_call_cb is going to be the way to get HLL
argument passing working correctly, perhaps wrapped in some kind of
container PMC.
Duke
--
Jonathan "Duke" Leto
jonathan at leto.net
http://leto.net
More information about the parrot-dev
mailing list