[fpc-pascal] New feature: IfThen() intrinsic

Michael Van Canneyt michael at freepascal.org
Tue Feb 2 11:24:57 CET 2016



On Tue, 2 Feb 2016, Henry Vermaak wrote:

> On Tue, Feb 02, 2016 at 10:49:03AM +0100, Michael Van Canneyt wrote:
>> So the iif in either functional or expression form has my vote.
>
> I'm surprised that you support iif in function call form.  Making
> something that looks like a function call but may not behave as a
> function call (short cut eval) seems like a recipe for disaster.

Would you mind explaining why ?

The compiler people also say this, but I never understood this argument.

Michael.



More information about the fpc-pascal mailing list