More magical AA semantics
deadalnix
deadalnix at gmail.com
Fri Jan 11 05:27:45 PST 2013
On Friday, 11 January 2013 at 11:14:27 UTC, monarch_dodra wrote:
> In particular, if you define an opIndexAssign, then the RHS
> *has* to be evaluated first (from a "visual" point of view,
> since LHS is pretty much "this").
>
> //----
> a[0] = a[0]
> //----
> Becomes
> //----
> a.opIndexAssign(a[0], 0);
> //----
>
It is probably not gonna change at this point, but opIndexAssign
seems wrong here, not the LTR evaluation.
More information about the Digitalmars-d
mailing list