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
.perl on Attribute does not work with LTA error message #2033
Comments
From sohtil@gmail.comHi! Calling .perl on an Attribute gives me a confusing error message: Method 'attributes' not found for invocant of class '' Lithos This is Rakudo Perl 6, version 2010.07-84-g0e5edb5 built on parrot 2.6.0 r48225 $ cat test.pl my $attr = Int.^methods.first({.name eq <new>}).^attributes.[0]; say $attr.WHAT; |
From @cokeOn Sat Aug 07 04:40:57 2010, lithos wrote:
Instead of a confusing error message, we now segfault. Here's the beginning of the stacktrace: #0 0xf63d9f4d in Rakudo_cont_decontainerize () from dynext/perl6_ops.so -- |
The RT System itself - Status changed from 'new' to 'open' |
From @cokeOn Sat Aug 07 04:40:57 2010, lithos wrote:
$ ./perl6 test.pl Closable with tests. |
From @cokeOn Thu Nov 15 20:41:24 2012, coke wrote:
Bitrotted, needs fixing again: $ ./perl6 test.pl -- |
From @usev6Looks like Int.^methods doesn't contain the method "new" and therefore $attr ends up empty. $ perl6-m -e 'Int.^methods.say' |
From @MasterDuke17On Mon Oct 13 14:12:09 2014, bartolin@gmx.de wrote:
perl6 -e 'Int.^methods.say' perl6 -e 'Int.^methods.first({.name eq <new>}).WHAT.say' perl6 -e 'Int.^methods.first({.name eq <new>}).^attributes.say' perl6 -e 'Int.^methods.first({.name eq <new>}).^attributes.[0].say' perl6 --version |
From @MasterDuke17Fixed in rakudo/rakudo@3dd2916 |
@MasterDuke17 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#77070 (status was 'resolved')
Searchable as RT77070$
The text was updated successfully, but these errors were encountered: