maxsam·قبل 6 سنوات·discuss> 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
...and are severely crippled by applying betterC constraints to CTFE:
Error: array concatenation of expression "int " ~ name ~ ";" requires the GC which is not available with -betterC