Module and package with the same name

Walter Bright newshound at digitalmars.com
Thu Mar 23 20:09:10 PST 2006


"Bruno Medeiros" <daiphoenixNO at SPAMlycos.com> wrote in message 
news:dvujbc$1j5e$1 at digitaldaemon.com...
> Indeed it should. However if the module were to also be the package, 
> (i.e., a module could contain other modules, like C++'s or C#'s 
> namespaces) then we could have that behavior and the name resolution still 
> be scope dependent.

You can do that now:

---------------
module foo;

import bar;
import abc;
----------------- 





More information about the Digitalmars-d mailing list