Why is char initialized to 0xFF ?

KnightMare black80 at bk.ru
Sun Jun 9 09:27:39 UTC 2019


On Sunday, 9 June 2019 at 08:36:30 UTC, Patrick Schluter wrote:

I read the bible too. I know reasons why leaders decided use NaN 
and FF.
but
what is the best solution:
do some math and get garbage in C++ or NaN in D?
or compiler will tell "using unitialized variable" before any 
math?



More information about the Digitalmars-d mailing list