bool <=> int. WTF. (DIP0015)

a11e99z black80 at
Tue Jul 2 16:22:17 UTC 2019

On Tuesday, 2 July 2019 at 15:10:37 UTC, jmh530 wrote:
> On Tuesday, 2 July 2019 at 13:42:28 UTC, 9il wrote:

> I think people could disagree on whether the enum part of the 
> example is a bug. Maybe more of an enhancement request to have 
> different handling for function overloads with enums? The enum 
> values are being treated like literals instead of as int

for one type called different functions. its very, very, very 
weird. its impossible in any other langs probably. imo should be 
for enums with base types not bool functions with bool should 
never be called at all

More information about the Digitalmars-d mailing list