Yet another slap on the hand by implicit bool to int conversions

Vladimir Panteleev vladimir at thecybershadow.net
Sun Jun 19 14:24:23 PDT 2011


On Sun, 19 Jun 2011 23:13:06 +0300, Andrej Mitrovic  
<andrej.mitrovich at gmail.com> wrote:

> So I've had a pretty fun bug today when porting some code over to D.
> When I port C code to D, first I do a one-to-one translation and make
> sure everything works before I try to make use of any D features.

How would you expect D to deal with types such as BOOL (which is a 32-bit  
type)?

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d mailing list