Shouldn't bool be initialized to 0xFF ?
Lionello Lunesu
lio at lunesu.remove.com
Tue Aug 15 09:01:55 PDT 2006
Anders F Björklund wrote:
> Lionello Lunesu wrote:
>
>> I've been following those "why's char init'ed to -1?" / "why's float
>> init'ed to NaN?" thread, and I'd have to agree with Walter: a crazy
>> initialization sure makes it obvious where the problem lies.
>
> I'm not sure that "more crazy .init values" is the cure to char/float...
Well, it would have helped me find a very old bug (a bool that wasn't
inited).
L.
More information about the Digitalmars-d
mailing list