DIP proposal: Enum parameters
Timon Gehr
timon.gehr at gmx.ch
Sat Sep 24 00:12:35 UTC 2022
On 23.09.22 17:41, Quirin Schroll wrote:
> Read the draft here:
> https://github.com/Bolpat/DIPs/blob/EnumParameters/DIPs/1NNN-QFS.md
> ...
Looks useful.
> Feedback is welcome.
- The author's name is spelled wrong.
- The description of `auto enum` makes it not fully clear if the
compiler attempts to interpret the argument with CTFE or not to check
whether it is a compile-time constant. Same question about overloads.
(Though for overloads I would expect CTFE to be attempted, as in the
first step it has to be determined which overloads even match.)
- The special-case qualifier and storage class behavior is not
necessary, just make it behave like a normal `enum` variable.
More information about the Digitalmars-d
mailing list