[Issue 260] conflicting imports

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 25 13:26:00 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=260





------- Comment #6 from daiphoenix at lycos.com  2006-07-25 15:25 -------
(In reply to comment #1)
> Here's a simple example of the issue:
> // -- foo.d --
> private import std.stdio;
> // -- bar.d --
> private import std.stdio;
> // -- test.d --
> import foo, bar;
> void main()
> {
>     char[] hi = std.string.toString(3);
> }
> DMD:
>    foo.d(1): import foo.std conflicts with bar.std at bar.d(1)
> Of course, the code in test.d is a mistake, but look how unhelpful the error
> message is. It will blame a library's code for a mistake the library-user made.

I've run that example and I get no error (DMD.163, no extra switches). Did you
run that test case in the latest DMDs?


-- 




More information about the Digitalmars-d-bugs mailing list