Cross module version specs

Dmitry Olshansky dmitry.olsh at gmail.com
Fri Apr 27 13:26:31 PDT 2012


On 28.04.2012 0:22, Matt Peterson wrote:
> 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);

I would rather see this as import test with specified version identifiers.

import test!(some_version);
//imports module but treats it contents as if with "version = 
some_version;" added at the top of it


-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list