DMD 0.148 release

Regan Heath regan at netwin.co.nz
Sun Feb 26 15:29:36 PST 2006


On Sun, 26 Feb 2006 22:03:20 +0000 (UTC), Thomas Kuehne  
<thomas-dloop at kuehne.cn> wrote:
>>   - when you convert/promote a bool to an int you get: 'true'->'1',
>> 'false'->'0'
>
> The problem is: that assumtion isn't easily enforcable if bool is
> treated as an integer type.

I'm no assembler expert but isn't there a single instruction for comparing  
to 0? Can't you therefore convert to bool with that, or it's inverse?

Regan



More information about the Digitalmars-d-announce mailing list