[Parrot] #173: lexicals not found in PIRC
Parrot
parrot-tickets at lists.parrot.org
Wed Jan 14 17:03:49 UTC 2009
#173: lexicals not found in PIRC
--------------------+-------------------------------------------------------
Reporter: kjs | Owner: kjs
Type: bug | Status: new
Priority: normal | Milestone:
Component: pirc | Version:
Severity: medium | Keywords: lexicals
Lang: | Patch:
Platform: |
--------------------+-------------------------------------------------------
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.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/173>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
More information about the parrot-dev
mailing list