float init 0 request

claptrap clap at trap.com
Sat Aug 15 10:02:24 UTC 2026


On Friday, 14 August 2026 at 21:28:54 UTC, Walter Bright wrote:
> On 8/14/2026 7:02 AM, Richard (Rikki) Andrew Cattermole wrote:
>
>> If you try to do math on a signaling NaN it will throw a 
>> hardware exception, just like doing a null dereference does.
>
> No compiler I know implements this, because it's a nuisance. 
> NaNs were invented for the 8087, and while it made sense on 
> paper, in practice it didn't work out too well.

The old Delphi compiler did, backing the 2000s, no idea if it 
still does. But you did have to be careful interfacing with 
external code, like calling C++ dll you had to make sure to 
switch it off and back on again.

It was actually pretty useful from what i remember.


More information about the Digitalmars-d mailing list