A Philosophy of Software Design

Forum User forumuser at example.com
Tue Jun 30 18:40:32 UTC 2026


On Monday, 29 June 2026 at 19:54:10 UTC, Walter Bright wrote:
> On 6/28/2026 12:31 PM, FinalEvilution wrote:
>> I'd just like to note that there are floating point hardware 
>> exceptions
>
> True, but pretty much nobody enables that.

Maybe or maybe not [1]. But what was was the argument here? 
Actually

a) these hardware traps are present in all modern processors in
    the market,

b) Traping overflow or invalid operation costs nothing (no 
additional
    cycles).

If the job cannot "recover" it's the best to let it crash.

[1] 
https://docs.oracle.com/cd/E19957-01/805-4940/z40009062fdd/index.html
     "The default with f90 is to automatically trap on division by 
zero,
      overflow, and invalid operation."


More information about the Digitalmars-d mailing list