On Sat Aug 07 04:40:57 2010, lithos wrote:
> Hi!
> 
> Calling .perl on an Attribute gives me a confusing error message:
> 
> Method 'attributes' not found for invocant of class ''
>   in 'Mu::attribs' at line 1198:CORE.setting
>   in 'Mu::perl' at line 1207:CORE.setting
>   in main program body at line 7:test.pl
> 
> Lithos
> 
> This is Rakudo Perl 6, version 2010.07-84-g0e5edb5 built on parrot
> 2.6.0 r48225
> 
> $ cat test.pl
> use v6;
> 
> my $attr = Int.^methods.first({.name eq <new>}).^attributes.[0];
> 
> say $attr.WHAT;
> say $attr.name;
> say $attr.perl;

$ ./perl6 test.pl 
Attribute()
$!exception
Attribute.new()

Closable with tests.
-- 
Will "Coke" Coleda

Reply via email to