[Issue 4287] opOpAssign!("~=") for std.array.Appender
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 3 16:03:06 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4287
--- Comment #7 from bearophile_hugs at eml.cc 2013-02-03 16:03:05 PST ---
(In reply to comment #5)
> Why was opOpAssign in that pull implemented with returning the 'this'
> reference? I saw this in TDPL too, but I don't see the benefit of having this
> compile:
>
> (foo ~= 1) ~= 1;
Sometimes I like the assignment to return the value, to write:
a = b = c;
But I think the append doesn't need to return a value.
--
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