Version bug?
Adam D. Ruppe
destructionator at gmail.com
Mon Aug 23 13:11:26 PDT 2010
On Sun, Aug 22, 2010 at 10:23:33PM -0700, Walter Bright wrote:
> The compiler is exhibiting correct behavior.
I think there should be an extra note in there: version specifications only
apply to the module in which they appear.
> can be tested by the importer with static if. These declarations can be
> nested, scoped, etc., and there are protections in the language for
> inadvertent ambiguities from imports, and ways to control it - it's all
> very hygienic.
Yes, another advantage is the compiler can detect if you forgot to import
the file or mis-typed the name too.
More information about the Digitalmars-d
mailing list