http://d.puremagic.com/issues/show_bug.cgi?id=8338
Kenji Hara <k.hara...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |D2 --- Comment #1 from Kenji Hara <k.hara...@gmail.com> 2012-07-02 19:40:39 PDT --- (In reply to comment #0) > Take this bit of code > [snip] > > None of those const or immutables should be there. The only changes between > this and not using Unqual at all is the const T[] are now const(T)[] and the > immutable T[] are now immutable(T)[]. And the immutable(T)[], are still > immutable(T)[]. The immutable on their elements aren't stripped. > > Unqual specifically states that it removes _all_ qualifiers. It's clearly only > removing them from the array itself and not the elements, so it's not removing > all of the qualifiers. Yes. std.traits.Unqual removes the top qualifier of given type, not all ones. But, changing its implementation would break *maby* existing codes, so, instead, we should fix its documentation. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------