2 ms·
> its metaprogramming facilities far outstrip the C preprocessor. ...and are severely crippled by applying betterC constraints to CTFE: // CTFE-only strin
by maxsam 7y ago
> its metaprogramming facilities far outstrip the C preprocessor.
...and are severely crippled by applying betterC constraints to CTFE:
// CTFE-only
string genint(string name) {
return "int " ~ name ~ ";";
}
void main() {
mixin(genint("x"));
}
Error: array concatenation of expression "int " ~ name ~ ";" requires the GC which is not available with -betterC