https://issues.dlang.org/show_bug.cgi?id=14626

--- Comment #4 from Kenji Hara <[email protected]> ---
(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.

--

Reply via email to