strong enums: why implicit conversion to basetype?

Don nospam at nospam.com
Thu Jan 26 11:52:08 PST 2012


On 26.01.2012 14:59, Trass3r wrote:
> I thought it'd be good to outsource this question from the other thread
> about enums as flags.
>
> Is there any merit in having implicit conversion to the basetype?

Allowing it to be used as an argument when calling C functions?

Without it, how would you support eg the Windows API?


More information about the Digitalmars-d mailing list