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"));
```
  • Do string mixins... DLearner via Digitalmars-d-learn
    • Re: Do stri... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Do ... DLearner via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... DLearner via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
              • ... DLearner via Digitalmars-d-learn
        • Re:... Adam D. Ruppe via Digitalmars-d-learn
          • ... DLearner via Digitalmars-d-learn
        • Re:... abc via Digitalmars-d-learn
    • Re: Do stri... Kapendev via Digitalmars-d-learn

Reply via email to