opEquals needs to return bool

BCS ao at pathlink.com
Fri May 16 14:19:34 PDT 2008


Reply to Sean,

>> Bools are bytes, while ints are 4 bytes, so sometimes ints are
>> managed faster.
>> 
> So why not just make bool a 4-byte value?  Using an integer to
> represent a boolean operation is just silly.
> 

Or pad them to 4 bytes where you can (local variable).





More information about the Digitalmars-d mailing list