On Thu Aug 05 14:14:15 2010, masak wrote:
> <ash_> rakudo: my $a = class { has $a; }; say $a.new(a => 1).perl; #
> that looks funny too...
> <p6eval> rakudo 19931f: OUTPUT«.new(a => 1)␤»
> <ash_> but i have no idea what is "right", just looks funny...
> * masak submits rakudobug
> <pmichaud> rakudo:  my $a = class { has $a; };  say $a.perl;
> <p6eval> rakudo 19931f: OUTPUT«␤»
> 
> On the principle that an eval should give you back what you started
> with, probably both of these are wrong. Might not be easy or even
> doable to get right, but we should probably avoid spitting out
> something that we know will be eval'd wrongly. Might even be better to
> die or fail in that case.

These now output:

20:47 < [Coke]> rakudo: my $a = class { has $a; }; say $a.perl;
20:47 <+p6eval> rakudo 545638: OUTPUT«<anon>␤»
20:47 < [Coke]> rakudo: my $a = class { has $a; }; say $a.new(a => 1).perl;
20:47 <+p6eval> rakudo 545638: OUTPUT«<anon><-856690017062603138>␤»

-- 
Will "Coke" Coleda

Reply via email to