Do string mixins work under -betterC?

abc a at b.c
Thu Dec 18 10:34:47 UTC 2025


On Tuesday, 16 December 2025 at 23:25:18 UTC, DLearner wrote:
> 1. Any proposals to mark a function as CTFE only?

If your function is a lambda assigned to an anonymous enum then 
it will not generate runtime code and it will not error.
```
enum genStuff = (string val){
  	return val ~ ";";
};

mixin(genStuff("int abc"));
```


More information about the Digitalmars-d-learn mailing list