maybe a noreturn issue

Nick Treleaven nick at geany.org
Tue Dec 3 17:16:06 UTC 2024


On Tuesday, 3 December 2024 at 12:41:18 UTC, Basile B. wrote:
> Not sure if that should compile
>
> ```d
> int f()
> {
>     while (true) {}
> }
> ```

The spec allows that:
https://dlang.org/spec/function.html#function-return-values


More information about the Digitalmars-d-learn mailing list