develooper Front page | perl.perl6.compiler | Postings from February 2012

[perl #73232] [BUG] LTA error message when declaring dot-twigil variables outside of a class scope in Rakudo

From:
Will Coleda via RT
Date:
February 1, 2012 06:10
Subject:
[perl #73232] [BUG] LTA error message when declaring dot-twigil variables outside of a class scope in Rakudo
Message ID:
rt-3.6.HEAD-14510-1328105415-1096.73232-15-0@perl.org
On Tue Mar 02 10:38:41 2010, masak wrote:
> <masak> std: my Any %.x=3,%.x;
> <p6eval> std 29917: OUTPUT«ok 00:01 109m␤»
> <masak> rakudo: my Any %.x=3,%.x;
> <p6eval> rakudo 6867a5: OUTPUT«Lexical 'self' not found [...]
> * masak submits LTA rakudobug
> 
> In my opinion, it should give an error already at the wonky declaration.

Now includes a NULL PMC error:

09:09 < [Coke]> rakudo: my Any %.x=3,%.x; #RT #73232
09:09 <+p6eval> rakudo ce5cca: OUTPUT«Useless declaration of a has-scoped
                method in mainline␤Null PMC access in find_method('x')␤  in
                block <anon> at /tmp/AGDZSzesDD:1␤  in <anon> at
                /tmp/AGDZSzesDD:1␤»


-- 
Will "Coke" Coleda



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About