[Issue 17771] foreach over const input range fails
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Aug 22 10:56:14 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17771
--- Comment #10 from Steven Schveighoffer <schveiguy at yahoo.com> ---
It's actually counter-intuitive for the D compiler to strip qualifiers
automatically, it almost never happens.
The only place I'm aware of is IFTI for arrays and pointers.
I feel like this is a case of being helpful, but will be confusing because it's
not consistent for all ranges. Experience shows that the benefit is not worth
the confusion.
But I am not the decider of such things, so I will leave it up to Walter/Andrei
to comment.
--
More information about the Digitalmars-d-bugs
mailing list