[fpc-pascal] New feature: IfThen() intrinsic
Vojtěch Čihák
vojtech.cihak at atlas.cz
Sun Jan 31 16:14:42 CET 2016
Hi,
what is difference in produced assembler between ifthen(); and classic if - then - else?
Thanks, V.
______________________________________________________________
> 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
>
Hello together!
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:
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal <http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160131/07ffc0d6/attachment.html>
More information about the fpc-pascal
mailing list