Embedding PIR directly in NQP (Q:PIR { ... })
- Q:PIR allows direct access to PIR for long sequences or special cases
my $variable := Q:PIR {
.local pmc varname, lexpad
varname = find_lex '$arrayName'
lexpad = find_dynamic_lex '%LEXPAD'
%r = lexpad[varname]
};
- Registers 0 through 9 in each bank are available for use
- Return a value from Q:PIR using %r (which currently must be a PMC)