April 24, 2009 Re: Module system of D2: to be fixed still | ||||
|---|---|---|---|---|
| ||||
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.
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply