minimal evaluation

Qian Xu quian.xu at stud.tu-ilmenau.de
Mon Apr 6 04:33:31 PDT 2009


> 
> if (isNull(foo) ||
>     isNull(foo.getBar) ||
>     isNull(foo.getBar.getBar2)
> {
>   return false;
> }

Update: If minimal evaluation is not always enabled, and foo.getBar is NULL.
I will get a segfault when evaluating foo.getBar.getBar2.





More information about the Digitalmars-d mailing list