Re: allow .re and .im to be l-values

2012-05-18 Thread Moritz Lenz
On 05/19/2012 06:05 AM, Siddhant Saraf wrote: > r: my $x = 4 + 2i; $x.re = 5; > rakudo 45679a: OUTPUT«Cannot assign to a non-container␤ in > block at /tmp/PeeJaa8bWJ:1␤␤» > > I think $x.re (Real part of $x) and $x.im (Imaginary part of $x) > should be allowed to be l-values. > What do you sa

allow .re and .im to be l-values

2012-05-18 Thread Siddhant Saraf
r: my $x = 4 + 2i; $x.re = 5; rakudo 45679a: OUTPUT«Cannot assign to a non-container␤ in block at /tmp/PeeJaa8bWJ:1␤␤» I think $x.re (Real part of $x) and $x.im (Imaginary part of $x) should be allowed to be l-values. What do you say? Will this affect the performance of Rakudo, Niecza ? Recen