parrot/parrot — Issue #717: Need a way to make register-ref Keys from PIR
Author: Whiteknight
Created: 2012-02-22 18:25:40+00:00
State: open
Labels: core, todo

This is mostly a reminder to myself. We have a way to make Key PMCs at runtime from PIR or higher. Here is one example of that mechanism (it's ugly, but it does exist):

https://github.com/Whiteknight/parrot-linear-algebra/blob/master/t/testlib/matrixtestfactory.nqp#L7

We either don't have, or I'm not aware of, a mechanism to create a Key which uses a register reference:

$P0[$I0; $S0] = $P1

This is going to be necessary for doing self-hosted compilation in places like PACT.