[frustration, sorry] Import conflict madness.

Jari-Matti Mäkelä jmjmak at utu.fi.invalid
Sat Jun 17 12:01:19 PDT 2006


Dawid Ciężarkiewicz wrote:
> The good error msg would look like:
> 
> $file($line): triggered import conflict with X ($X:$Xline) and Y
> ($Y:$Yline)
> 
> Where $file($line) is place where compiler found that this two modules are
> conflicting. This would be quite informative IMO.

Yes.

> 
> Another thing is that I do "private import $i" for purpose - I don't want
> names from module be _anyhow_ visible - not triggering any conflicts.

I think they should be visible enough to trigger a proper error message,
when you don't have any public symbols with the same name. But when you do
have, the compiler should be able to mask the private ones then. Only if
you have at least two public symbols with the same name, a name conflict
should appear.

-- 
Jari-Matti



More information about the Digitalmars-d mailing list