mixin template compile-time compute declared name
NonNull
non-null at use.startmail.com
Sat Jun 27 21:10:59 UTC 2020
Want
mixin mytemplate!("foo", .............................);
to be able to declare names dependent upon the text foo in the
context it is used.
For example declaring
enum x_foo = ....................................;
blah foo_value = ....................................;
.
.
.
.
Is it possible to use a template to declare something whose name
is computed at compile time?
More information about the Digitalmars-d-learn
mailing list