On 2016-02-02 09:44, Michael Van Canneyt wrote:
> 
> N:=iif(Assigned(A),A.Name,'Nil');
> 
> You'll get a crash using regular functions because All arguments are
> evaluated prior to calling iif().


Okay, fair enough. Thanks for the example.


Then again, it is a relatively small corner case. I've not hit that
issue in 15+ years using tiUtils. Maybe I was just lucky. ;-)  Either
way, I understand better now.

Regards,
  - Graeme -


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to