lexicals not found in PIRC #9

Closed
plobsing opened this Issue Nov 28, 2010 · 1 comment

Projects

None yet

2 participants

@plobsing
Contributor

Originally reported in parrot TT #173 (http://trac.parrot.org/parrot/ticket/173)

lexicals can't be found in nested .subs.
the following works in parrot, but the generated bytecode doesn't seem to work:

{{{
.sub main
.lex "x", $P0
$P0 = new "Integer"
$P0 = 42
foo()
.end

.sub foo :outer("main")
$P0 = find_lex "x"
print $P0
.end
}}}

So, apparently, lexicals are not stored correctly.
This needs fixing.

@pmichaud
Member

The original source code is missing a "capture_lex" instruction -- see comment at http://trac.parrot.org/parrot/ticket/173#comment:8 .

Pm

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment