What    |Removed                     |Added
                 CC|                            |

------- Comment #1 from  2009-03-20 20:10 -------
opIndexAssign will always be needed for something.  Library implementations of
AAs and bit arrays are an example.

There should be probably be a choice of defining opIndexAssign or defining
opIndex with a ref return.  opIndexAssign could even work for the example code,
if s[i] += 4 were rewritten as s[i] = s[i] + 4 (with i being evaluated only
once) and then expanded into op functions.

The tricky bit is deciding on the logic to use if both are defined....


Reply via email to