When not capturing the return value of a string mixin expression, I get "found `End of File` when expecting `;`"
Dejan Lekic
dejan.lekic at gmail.com
Fri Sep 12 09:17:55 UTC 2025
On Friday, 12 September 2025 at 08:36:42 UTC, realhet wrote:
> Is this a feature or a bug? :D
> Is there a way to make this processing_and_optional_returning
> thing better?
It is a bug in your code.
Change line 6 to
```d
(){ val += 1; return val; }();
```
After the added `;` it should work as expected.
More information about the Digitalmars-d-learn
mailing list