[Issue 15355] unstable operator overloading with comma expression
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Dec 6 10:50:21 PST 2015
https://issues.dlang.org/show_bug.cgi?id=15355
ZombineDev <petar.p.kirov at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |petar.p.kirov at gmail.com
--- Comment #2 from ZombineDev <petar.p.kirov at gmail.com> ---
I think it would be more appropriate if the compiler raised an ambiguity error,
because the behavior is tricky and can lead to hard to track bugs.
If the opIndexAssign is defined, than opIndex that returns a reference should
be disallowed, or at least opIndex that returns a mutable (assignable)
reference should be.
--
More information about the Digitalmars-d-bugs
mailing list