Compare struct against null

Heinz malagana15 at yahoo.es
Sun Apr 27 17:50:08 PDT 2008


Hi,

I have a simple struct and i want to check if a variable has been asigned:

struct hello
{

}
...
hello h;
...
if(!h)
{
do stuff;
}

When compiling i get erros about opCall not implemented and many others. What can i do?

Thanks in advance.


More information about the Digitalmars-d-learn mailing list