[perl #57336] Using attribute variables outside of methods causes strange errors in rakudo

2009-04-28 Thread Ron Schmidt via RT
Well it's now more than half a year later and the current behavior is: PhatEddy rakudo: say $.a 17:22 p6eval rakudo 6f1649: OUTPUT«Lexical 'self' not found␤current instr.: '_block14' pc 51 (EVAL_17:34)␤» It seems to me that if you try to access an attribute with no applicable class or

[perl #57336] Using attribute variables outside of methods causes strange errors in rakudo

2008-07-29 Thread jn...@jnthn.net via RT
Hi, I've made some of these fail a little less spectacularly now. Implementing a better error message cleanly either needs some refactoring of variable declaration handling code (so when we're parsing a variable we know if we're parsing a declaration), or is something we should do in an analysis

[perl #57336] Using attribute variables outside of methods causes strange errors in rakudo

2008-07-27 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #57336] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57336 This works... $ ./perl6 -e 'class A { my $.a; method m { say $.a } }' ...and