On Tue Oct 04 17:48:14 2011, coke wrote: > 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>»
Slight change: 01:21 <[Coke]> rakudo: my $a = class { has $a; }; say $a.perl; 01:21 <camelia> rakudo bfd850: OUTPUT«<anon>» 01:21 <[Coke]> rakudo: my $a = class { has $a; }; say $a.new(a => 1).perl; 01:21 <camelia> rakudo bfd850: OUTPUT«<anon>.new()» -- Will "Coke" Coleda