https://issues.dlang.org/show_bug.cgi?id=13574

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from [email protected] ---
According to the current spec, the result of opDollar is cached:

http://dlang.org/operatoroverloading.html#dollar

(FYI, I was responsible for that particular note, under request by Kenji.)

I think assigning to $ in a slice expression should be illegal, since it leads
to unclear semantics, e.g., what should arr[($=2) + ($=1)] mean?

--

Reply via email to