DIPX: Enum Literals / Implicit Selector Expression

user1234 user1234 at 12.de
Fri Dec 3 08:44:01 UTC 2021


On Friday, 3 December 2021 at 04:25:06 UTC, Elronnd wrote:
> On Friday, 3 December 2021 at 02:38:18 UTC, Dave P. wrote:
>> Where this really shines are with bit flags.
>
> Bitflags are a case where 'with' _does_ work.

No, that does not work with variable initializers. That damn 
variable is then declared in a nested scope. Maybe something like 
`static with(){}` could be added for those cases but well, that's 
not the proposal here, let's not fork already.


More information about the Digitalmars-d mailing list