DIPX: Enum Literals / Implicit Selector Expression

bauss jj_1337 at live.dk
Wed Jul 6 07:05:20 UTC 2022


On Tuesday, 5 July 2022 at 15:06:01 UTC, Steven Schveighoffer 
wrote:
>
> I thought that too. But there is existing syntax that might 
> interfere: `cond ? value1 :value2`.
>
> I don't know enough to be sure, so I just picked one that isn't 
> used.
>
> -Steve

I don't think that would interfere, because `cond ? value1 
value2` isn't allowed, so if value2 is an enum value then it 
would be `cond ? value1 : :value2`


More information about the Digitalmars-d mailing list