Reviewing Phobos

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Fri Feb 9 09:55:32 PST 2007


Orgoton wrote:
> Frits van Bommel Wrote:
> 
>> Orgoton wrote:
>>> I've been noticing some occasional "bool" instead of "bit".
>> Don't you mean the other way around?
>> "bit" is just an alias to "bool" created in order to not break too much 
>> code when the native bit type was removed from the language AFAIK...
> 
> Ups, I made a typo: not "bool" but "BOOL" (caps). Also, "1" is used instead "true" and "0" instead of "false".

Ah, that'd be in the windows-specific code, right?
IIRC 'BOOL' is an alias of int used by Windows APIs because C doesn't 
have a real bool type (at least, it didn't until C99, after the APIs 
were created).
So don't change those.



More information about the Digitalmars-d mailing list