Using std.math: FloatingPointControl.enableExceptions

Shriramana Sharma via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Dec 11 02:09:45 PST 2015


rumbu wrote:

> Constant folding: a is evaluated at compile time to + infinity.

Hmm... I guess the compiler figures that if someone is hardcoding that 
expression then they don't want to see an exception. Thanks for the 
explanation.

-- 
Shriramana Sharma, Penguin #395953


More information about the Digitalmars-d-learn mailing list