strong enums: why implicit conversion to basetype?

Trass3r un at known.com
Thu Jan 26 12:26:22 PST 2012


>> Is there any merit in having implicit conversion to the basetype?
>
> Allowing it to be used as an argument when calling C functions?

extern(C):
enum Bla : int {...}
void foo(Bla b);

How does this require implicit conversion?
The codegen treats Bla like basetype anyway.


More information about the Digitalmars-d mailing list