Is this a operator overloading bug?

Leandro Lucarella llucarella at integratech.com.ar
Thu Jan 11 06:53:20 PST 2007


David Medlock escribió:
> Its not a bug, you didn't initialize the x,y and z members of Vector3.
> 
> try:
> 
> struct Vector3
> {
>   float x =0, y =0, z =0;
> ....
> }

Is there a logical explanation about why floats are initialized to NAN 
and not zero?

-- 
Leandro Lucarella
Integratech S.A.
4571-5252



More information about the Digitalmars-d mailing list