Is this a operator overloading bug?

Leandro Lucarella llucarella at integratech.com.ar
Thu Jan 11 07:19:36 PST 2007


Tomas Lindquist Olsen escribió:
> Leandro Lucarella wrote:
> 
>> 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?
> 
> http://www.digitalmars.com/d/faq.html#nan

My fault for not looking at the FAQ =)

Even so, I think I read this before and I forgot it =P

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



More information about the Digitalmars-d mailing list