Uninitialized floating-point exceptions - optional compile-time warnings?

2011-07-12 Thread Andrej Mitrovic
I'm wondering about this: void main() { import std.math; FloatingPointControl fpc; fpc.enableExceptions(FloatingPointControl.severeExceptions); float foo; } Declaring uninitialized floating point variables after enabling severe exceptions will throw at runtime: object.Error:

Re: Uninitialized floating-point exceptions - optional compile-time

2011-07-12 Thread bearophile
Andrej Mitrovic: I don't know whether this is intentional or not, I think it was not intentional. Regarding your successive questions, Don is your man and best hope. Bye, bearophile

Re: Uninitialized floating-point exceptions - optional compile-time

2011-07-12 Thread Andrej Mitrovic
I think he's on a vacation though. :p