[Issue 453] When importing modules compiler can not distinguish between directory and file
Walter Bright
newshound at digitalmars.com
Wed Oct 25 18:38:25 PDT 2006
Consider this:
int Foo;
class Foo { const int bar = 3; const int min = 4; }
and the code:
Foo + 3; // use the int Foo
Foo.max + 3; // use the int Foo
Foo.bar + 3; // use the class Foo
Foo.min + 3; // error, ambiguous
D can be made to work that way. I don't think it's a good idea, however.
It'll be a major source of confusion, and bizarre special cases.
More information about the Digitalmars-d-bugs
mailing list