template TFoo(T) {
struct T { int a; int b; } T obj; } TFoo!Derp; Derp bar;Neither templates, nor mixin templates seem capable of this. Easy enough to use mixin, with tokenized string literal format, I think. I just hesitate to make opaque string evaluation a thing if some more meaningful method exists.