[fpc-pascal] New feature: IfThen() intrinsic
vojtech.cihak at atlas.cz
Sun Jan 31 16:14:42 CET 2016
what is difference in produced assembler between ifthen(); and classic if - then - else?
> Od: Sven Barth <pascaldragon at googlemail.com>
> Komu: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
> Datum: 31.01.2016 15:43
> Předmět: [fpc-pascal] New feature: IfThen() intrinsic
I've finally come around to add a feature that many people have asked
for throughout the years: an inline if that works like the if-statement
in that it only evaluates that expression that is indeed returned.
After the discussion last year about the inline-if I've decided to add
it as an intrinsic function instead of an extension of the language.
Like all intrinsics it's part of the System unit and "declared" like this:
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal