Michal Wallace <[EMAIL PROTECTED]> wrote:
> Hey all,
> I've got lambda (single-expression anonymous subroutine)
> working in pirate now, but I wasn't sure how to get it
> to do the correct calling convention with IMCC's "call".
I'm pretty sure, that you should use Parrot calling conventions for
If I understood well, the problem is that subroutines can be saved in
variables, right (or registers for that matter)?
So, if there is some subroutine "f", you could just do:
$I1 = addr _f# get address of subroutine f
$P1 = new Sub# create a new Sub PMC
$P1 = $I1# store add