Compile time values & implicit conditional mixin, as an alternative to tertiary operator hell and one-compile-time functions.
Paul Backus
snarwin at gmail.com
Sat Jan 16 16:23:18 UTC 2021
On Saturday, 16 January 2021 at 14:20:19 UTC, Paul wrote:
> This seems like a workaround for defining a function, and seems
> semantically strange to me. You're still restricted to
> immediate local 'onelines'.
This is true no matter what you do, because `enum` constants are
immutable. Their value has to be computed in a single expression,
and once assigned, it can never change.
More information about the Digitalmars-d
mailing list