works like a charm:
mixin template Foo(T) { int z = 42; } auto Bar(alias a) () { mixin a!int; return z; } void main () { writeln(Bar!Foo); }
ketmar via Digitalmars-d-learn Thu, 24 Nov 2016 17:10:49 -0800
works like a charm:
mixin template Foo(T) { int z = 42; } auto Bar(alias a) () { mixin a!int; return z; } void main () { writeln(Bar!Foo); }