[Issue 453] When importing modules compiler can not distinguish between directory and file

Walter Bright newshound at digitalmars.com
Wed Oct 25 17:19:51 PDT 2006


d-bugmail at puremagic.com wrote:
> Can't packages be distinguished from modules?

Consider the following:

	int F;
	class F { }

That doesn't work either. Cannot have two identical names in the same 
scope mean different things.

Now consider:

	import name;		// name.d
	import name.foo;	// name\foo.d

and in the code:

	name.foo.bar;

is that foo.bar inside name.d, or bar inside name\foo.d? It's not going 
to work.



More information about the Digitalmars-d-bugs mailing list