strong enums: why implicit conversion to basetype?

Trass3r un at known.com
Fri Jan 27 08:10:04 PST 2012


>> extern(C):
>> enum Bla : int {...}
>> void foo(Bla b);
>>
>> How does this require implicit conversion?
>> The codegen treats Bla like basetype anyway.
>
> Some of the Windows functions are made of multiple enums of different  
> types, ORed together.

-.- Microsuckx.
Then I think it should either become a combined enum or just anonymous  
ones (+ aliases to basetype perhaps).


More information about the Digitalmars-d mailing list