Ticket #173 (reopened bug) — at Version 6

Opened 13 years ago

Last modified 11 years ago

lexicals not found in PIRC

Reported by: kjs Owned by: kjs
Priority: normal Milestone:
Component: core Version:
Severity: medium Keywords: lexicals
Cc: parrot-dev@… Language:
Patch status: Platform:

Description (last modified by bacek) (diff)

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.

Change History

Changed 13 years ago by kjs

  • description modified (diff)

Changed 11 years ago by plobsing

  • description modified (diff)

Changed 11 years ago by plobsing

  • description modified (diff)

This issue is now being tracked at as issue #9 for  https://github.com/parrot/pirc. ( https://github.com/parrot/pirc/issues/#issue/9)

Changed 11 years ago by plobsing

  • description modified (diff)

Changed 11 years ago by plobsing

  • status changed from new to closed
  • resolution set to wontfix
  • description modified (diff)

Changed 11 years ago by bacek

  • status changed from closed to reopened
  • component changed from pirc to core
  • resolution wontfix deleted
  • description modified (diff)

Hello.

It's not pirc bug. IMCC-generated PBC has same problem.

-- Bacek

Note: See TracTickets for help on using tickets.