What is the pretty way to do something like this?
Class C
{
private const char[] _name = "C";// demangling this.mangleof didn't work
void makeNew()
{
mixin(`new `~_name~`();`); // the not so pretty part
}
}
What is the pretty way to do something like this?
Class C
{
private const char[] _name = "C";// demangling this.mangleof didn't work
void makeNew()
{
mixin(`new `~_name~`();`); // the not so pretty part
}
}