Enum literals, good? bad? what do you think?
claptrap
clap at trap.com
Thu Jul 22 08:37:57 UTC 2021
On Thursday, 22 July 2021 at 07:49:23 UTC, Basile B. wrote:
> On Thursday, 22 July 2021 at 07:42:33 UTC, Patrick Schluter
> wrote:
>>
>> https://run.dlang.io/is/a12yVL
>>
>> The compiler will already do the right thing as it cannot
>> convert the `enum A` and `enum B` to the type of x.
>
> Sorry for the massive disapointment but it can :
> https://run.dlang.io/is/ktKQPT.
Sometimes i think the main problem with D is all these weird
corner cases pop up and people dont say oh look we need to fix
this, nail it down, make it consistent, they say or look cool a
new feature!
Not directed at you fwiw.
More information about the Digitalmars-d
mailing list