[Issue 260] conflicting imports
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 21 09:04:33 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=260
------- Comment #1 from chris at dprogramming.com 2006-07-21 11:04 -------
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.
--
More information about the Digitalmars-d-bugs
mailing list