[Issue 12408] map does not like inout
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 19 21:42:27 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12408
--- Comment #3 from Infiltrator <lt.infiltrator at gmail.com> 2014-03-19 21:42:25 PDT ---
I thought that the whole point of using inout was to avoid having to copy-paste
code between mutable, const, and immutable functions? As you've described
(unless I'm misunderstanding), I should copy-paste
@property auto foo() inout nothrow pure @safe {
return arr.map!(e => e.fun(this));
}
as mutable, const, and nothrow. Shouldn't this be something which should be
fixed with inout and/or templates themselves?
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list