I'm getting NAN out of nowhere

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 9 10:07:34 PDT 2015


On Thursday, 9 July 2015 at 17:04:43 UTC, bachmeier wrote:
> Is there a reason the compiler doesn't identify this as an 
> error?

The compiler just doesn't really try to trace if variables have 
actually been initialized or not. It punts it to runtime for 
simplicity of compiler implementation.



More information about the Digitalmars-d-learn mailing list