Yet another slap on the hand by implicit bool to int conversions
Vladimir Panteleev
vladimir at thecybershadow.net
Sun Jun 19 14:34:48 PDT 2011
On Mon, 20 Jun 2011 00:32:38 +0300, Andrej Mitrovic
<andrej.mitrovich at gmail.com> wrote:
> I'm not sure what you're going for?
>
> alias int BOOL;
> enum : BOOL {
And now you can't pass D boolean expressions to Win32 APIs without a cast
or a "?:".
--
Best regards,
Vladimir mailto:vladimir at thecybershadow.net
More information about the Digitalmars-d
mailing list