[fpc-pascal] New feature: IfThen() intrinsic
Graeme Geldenhuys
mailinglists at geldenhuys.co.uk
Tue Feb 2 10:53:24 CET 2016
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 -
More information about the fpc-pascal
mailing list