Default value of class

David B. Held dheld at codelogicconsulting.com
Sat May 19 19:18:10 PDT 2007


Can anyone tell me the expected runtime behavior of this program?

class Foo
{ }

void main()
{
     Foo foo;
     assert(foo == null);
}

It's certainly not what I expected, and I want to know if I should file 
a bug report or not.

Dave



More information about the Digitalmars-d mailing list