On 14.09.2011 16:29, Andrea Fontana wrote:
dmd gives me this error:
Error: std.string.split at
/usr/include/d/dmd/phobos/std/string.d(70) conflicts with
std.regex.split(String) at
/usr/include/d/dmd/phobos/std/regex.d(2962)
It seems there's a name-conflict on standard library. How can I
solve it?
For now you can solve it by using full name:
std.regex.split or std.string.split
or use selective imports on std.string to avoid split.
I've tried with dmd 2.054 64bit and 2.056 64bit both compiled by
myself on my ubuntu machine.
Yes, it's a bug, they should overload each other, it exists since
std.regex inclusion maybe, I tried to fix this one in the past and failed.
There is something about lookup rules I obviously don't get.
--
Dmitry Olshansky