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

[perl #78316] [BUG] Weird error when doing .perl on .^attributes in Rakudo

Thread Next
From:
Will Coleda via RT
Date:
February 1, 2012 06:28
Subject:
[perl #78316] [BUG] Weird error when doing .perl on .^attributes in Rakudo
Message ID:
rt-3.6.HEAD-14510-1328106506-1763.78316-15-0@perl.org
On Sun Oct 10 16:05:36 2010, masak wrote:
> <masak> rakudo: class Car { has @.wheels }; say Car.^attributes
> <p6eval> rakudo 5bdbd4: OUTPUT«@!wheels␤»
> <masak> rakudo: class Car { has @.wheels }; say Car.^attributes.perl
> <p6eval> rakudo 5bdbd4: OUTPUT«Method 'attributes' not found for
> invocant of class ''␤  in 'Mu::attribs' at line 1216:CORE.setting␤  
in
> 'Mu::perl' at line 1225:CORE.setting␤  in main program body at line
> 1␤»
> <masak> o.O
> * masak submits rakudobug

New output:

09:27 < [Coke]> rakudo: class Car { has @.wheels }; say 
Car.^attributes.perl
                #RT 78316
09:27 <+p6eval> rakudo ce5cca: OUTPUT«(Attribute.new(),)␤»

Good enough?

-- 
Will "Coke" Coleda

Thread Next


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