Modules vs Packages

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Sun Sep 9 00:32:01 PDT 2007


On Sunday 9 September 2007 03:17, Julio César Carrascal Urquijo wrote:

> I think it was disallowed because package.d could contain some symbol 
> with the same name as another module in the package. For example:

[snip]

> In this case it might be unclear whether the import refers to the struct 
> in package.d or the module package.a.

And in this case the compiler would complain loudly and refuse to continue.
But doing a preemptive exception isn't that good an idea.

> On the other hand, Kirk McDonald's suggestion to add a "this.d" module 
> is very interesting. This should probably discussed further.

I like the this.d idea too.

-- 
Giuseppe "Oblomov" Bilotta



More information about the Digitalmars-d mailing list