Not Quite Perl Not Quite Perl - A lightweight Perl 6 #30

Embedding PIR directly in NQP (Q:PIR { ... })

my $variable := Q:PIR {
    .local pmc varname, lexpad
    varname = find_lex '$arrayName'
    lexpad = find_dynamic_lex '%LEXPAD'
    %r = lexpad[varname]
};
Copyright © 2010
http://www.pmichaud.com/2010/pres/