Why can't we put import in functions.

Robert Fraser fraserofthenight at gmail.com
Mon Oct 15 22:17:18 PDT 2007


Yang Bo Wrote:

> We can put "using namesapce" in any place in C++. Why not do the same
> way in D?

mixin(import(FILENAME));

You may need a compile-time function to strip the module declaration and be wary of forward references.



More information about the Digitalmars-d mailing list