Module system of D2: to be fixed still

Kagamin spam at here.lot
Fri Apr 24 03:16:31 PDT 2009


Denis Koroskin Wrote:

> First, I can't import Foo, because it will lead to name collision. It means that I have no access to enum Bar and its elements.

For me no name collision happens when I import Foo, only enum is forward referenced, here you are safe to declare function with int parameter, enum is implicitly convertible to int and you get type safety.



More information about the Digitalmars-d mailing list