[Issue 14626] [REG2.066] byValue doesn't work with inout AA
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jul 16 07:18:38 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14626
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Steven Schveighoffer from comment #1)
> That it worked before I think is a bug (the compiler did a lot of
> hand-waving with AA's to avoid sticky issues).
Yes, there was a compiler hack for the inout key/value types.
https://github.com/D-Programming-Language/dmd/blob/v2.065.0/src/mtype.c#L4897
(In reply to Martin Nowak from comment #3)
> Looks like the classical, mutable iterator over const/immutable container
> issue complicated by inout.
> Not sure if we can solve it with the current language features.
It would be a new DIP to extend inout feature.
--
More information about the Digitalmars-d-bugs
mailing list