Enum and CTFE function call

ixid nuaccount at gmail.com
Tue Aug 14 09:17:41 UTC 2018


On Tuesday, 14 August 2018 at 09:12:30 UTC, ixid wrote:
> This will not compile as it says n is not known at compile 
> time...

This does work if 'value' is changed to immutable and fun to 
accept it. So it still seems like a missed opportunity as enum 
shouldn't be able to change either.



More information about the Digitalmars-d-learn mailing list