minimal evaluation
davidl
davidl at nospam.org
Mon Apr 6 07:15:39 PDT 2009
在 Mon, 06 Apr 2009 19:33:31 +0800,Qian Xu <quian.xu at stud.tu-ilmenau.de>
写道:
>>
>> 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.
>
>
huh? post the whole code plz. It should work.
--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
More information about the Digitalmars-d
mailing list