Skip Menu |

Subject: on "is cached" subs: getlex: outer index out of range
Download (untitled) / with headers
text/plain 375b
Steps to reproduce: ############################################# $ cat > Foo.pm; unit module Foo; our sub foo () is cached { 42 } $ perl6 -I. -MFoo -e 'say Foo::foo' getlex: outer index out of range in any enter at gen/moar/m-Metamodel.nqp:3763 in block <unit> at -e:1 ############################################# The problem goes away if "is cached" trait is removed.
From: Lloyd Fournier <lloyd.fourn [...] gmail.com>
To: perl6-compiler [...] perl.org, bugs-bitbucket [...] rt.perl.org
Date: Tue, 19 Jan 2016 05:21:56 +0000
Subject: Re: [perl #126818] on "is cached" subs: getlex: outer index out of range
Download (untitled) / with headers
text/plain 867b
This bug just hit me :\. It should go away with 'no precompilation'.

I believe it's closely related to:


On Tue, Dec 8, 2015 at 2:43 AM Zoffix Znet <perl6-bugs-followup@perl.org> wrote:
Show quoted text
# New Ticket Created by  Zoffix Znet
# Please include the string:  [perl #126818]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=126818 >


Steps to reproduce:
#############################################
$ cat > Foo.pm;
unit module Foo;
our sub foo () is cached { 42 }
$ perl6 -I. -MFoo -e 'say Foo::foo'
getlex: outer index out of range
  in any enter at gen/moar/m-Metamodel.nqp:3763
  in block <unit> at -e:1
#############################################

The problem goes away if "is cached" trait is removed.
Subject: [PRECOMP] on "is cached" subs: getlex: outer index out of range
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 1.4k
On Mon Jan 18 21:22:44 2016, lloyd.fourn@gmail.com wrote: Show quoted text
> This bug just hit me :\. It should go away with 'no precompilation'. > > I believe it's closely related to: > > https://rt.perl.org/Public/Bug/Display.html?id=125634 > > On Tue, Dec 8, 2015 at 2:43 AM Zoffix Znet <perl6-bugs-followup@perl.org> > wrote: >
> > # New Ticket Created by Zoffix Znet > > # Please include the string: [perl #126818] > > # in the subject line of all future correspondence about this issue. > > # <URL: https://rt.perl.org/Ticket/Display.html?id=126818 > > > > > > > Steps to reproduce: > > ############################################# > > $ cat > Foo.pm; > > unit module Foo; > > our sub foo () is cached { 42 } > > $ perl6 -I. -MFoo -e 'say Foo::foo' > > getlex: outer index out of range > > in any enter at gen/moar/m-Metamodel.nqp:3763 > > in block <unit> at -e:1 > > ############################################# > > > > The problem goes away if "is cached" trait is removed. > >
Have to add "use experimental :cached" to Foo.pm to get it to compile these days. Then the example dies with: $ perl6 -I. -MFoo -e 'no precompilation; say Foo::foo' Cannot invoke this object (REPR: Null; VMNull) in block at /Users/coke/.rakudobrew/moar-2016.07.1/install/share/perl6/sources/AAC61C0EC6F88780427830443A057030CAA33846 (experimental) line 10 in any enter at gen/moar/m-Metamodel.nqp line 3963 in block <unit> at -e line 1 The bug goes away when adding "no precompilation;" to Foo.pm -- Will "Coke" Coleda


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org