string generate(string typeName)() { return "%s bla;".format(typeName); } void main() { mixin(generate!"int"); bla = 5; }//生成类型.