Cross module version specs

Matt Peterson ricochet1k at gmail.com
Fri Apr 27 13:22:32 PDT 2012


What about a templated module?

     module test(bool option1, T);

Imported like this:

     import test!(true, Foo);

It could act like the entire module was wrapped in a template, 
and the import would become:

     import test;
     mixin test.test_template!(true, Foo);


More information about the Digitalmars-d mailing list