Let we have something like:
mixin template X(string name) { immutable string name2 = '_' ~ name; mixin("struct " ~ name2 ~ "{ int i; }"); }But it would create variable name2 inside X, which should not be created. How to solve this problem?
Victor Porton via Digitalmars-d-learn Mon, 25 Feb 2019 16:11:30 -0800
Let we have something like:
mixin template X(string name) { immutable string name2 = '_' ~ name; mixin("struct " ~ name2 ~ "{ int i; }"); }But it would create variable name2 inside X, which should not be created. How to solve this problem?