[Issue 3188] remove opIndexAssign from the language
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 17 12:12:07 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3188
--- Comment #2 from Kyle Foley <k-foley at onu.edu> 2009-07-17 12:12:06 PDT ---
> Given that opIndexAssign doesn't occur in your code, removing opIndexAssign
> from the language isn't going to magically make this work.
I don't see why not. "a[1, 1] = 42;" should just become "a.opIndex(1, 1) =
42;" rather than do something special because the "=" is there. I am under the
impression that opIndexAssign is there only because return by reference was not
available at the time of designing operator overloads. But I would be
satisfied with your proposed fix anyways.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list