New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accessing a class attribute too early nils it/leaves it uninitialized #5667
Comments
From @skidsA class attribute accessed too early in the compilation process will get nilled out, or possibly never initialized. $ perl6 -e 'class A { my $.bar = 42; }; class D { }; A.bar.say' # fine, working |
From @geekosaurOn Mon, Sep 12, 2016 at 11:40 PM, Brian S. Julin <
The first one is expected, as the bodies of class definitions run at -- |
The RT System itself - Status changed from 'new' to 'open' |
From @skidsGolf by TimToady: (11:54:47 PM) TimToady: m: class A { my $.bar = 42; }; class D { BEGIN A.bar.say; }; A.bar.say; |
From @zoffixznetSlightly golfier (.say is not involved): <Zoffix> m: class A { my $.bar = 42; }; A.bar; A.bar.say |
From @zoffixznetAnd then this: <Zoffix> m: class A { BEGIN my $.bar = 42; }; BEGIN A.bar; A.bar.say |
Migrated from rt.perl.org#129261 (status was 'open')
Searchable as RT129261$
The text was updated successfully, but these errors were encountered: