<sisar> r: my $x = 4 + 2i; $x.re = 5;
<p6eval> rakudo 45679a: OUTPUT«Cannot assign to a non-container␤  in
block <anon> 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 ?

Recently substr-rw was split off from substr, so that now substr-rw is
the lvalue form. So maybe we can have $x.re-rw and $x.im-rw, but that
would be really ugly :)

-sisar

Reply via email to