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

Reply via email to