https://issues.dlang.org/show_bug.cgi?id=20811

Basile-z <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Basile-z <[email protected]> ---
> having a compile-time counter like this can actually be pretty useful

There was a plan to add a new primary exp for counting, see the defunct PR
https://github.com/dlang/dmd/pull/10131/files.

The problem with a CTFE counter is that it must allow static CTFE variables,
this is not correct. global and mutable states are forbidden in CTFE, they can
only change in a function body

--

Reply via email to