[dmd-beta] D2 2.058 beta 3
David Nadlinger
code at klickverbot.at
Sun Feb 12 14:08:32 PST 2012
On 2/12/12 10:58 PM, Andrej Mitrovic wrote:
> Why does this not work anymore?
>
> module test;
>
> import std.algorithm;
> import std.utf : count;
>
> void main()
> {
> "a".count();
> }
>
> test.d(8): Error: std.utf.count!(char).count at
> D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\utf.d(1757) conflicts
> with std.algorithm.count!("true",string).count at
> D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\algorithm.d(4551)
>
> Selective imports used to make these conflicts go away. What changed?
Personally, I certainly wouldn't expect selective imports to resolve
conflicts, but what changed is that they were previously implemented
using the equivalent of an explicit AliasDeclaration internally, which
thus used to resolve the conflict.
David
More information about the dmd-beta
mailing list