separate and/or independent compilation
Jarrett Billingsley
kb3ctd2 at yahoo.com
Thu Jun 7 14:07:44 PDT 2007
"Myron Alexander" <someone at somewhere.com> wrote in message
news:f49mt6$1t6d$1 at digitalmars.com...
>
> In D, the import statement imports a compiled module, not source.
>
> ...
>
> In one sentence, modules provide the functionality of #include (and so
> much more) but with "special" binaries rather than source.
Not exactly. When you import a module, it will only ever look for a source
file (.d or .di). It never looks for compiled modules. Once it finds a
source file, it will lex it, parse it, and do enough semantic analysis to
extract the symbol table, which can then be used from the current module.
More information about the Digitalmars-d-learn
mailing list