[fpc-pascal] New feature: IfThen() intrinsic
Maciej Izak
hnb.code at gmail.com
Mon Feb 1 09:51:02 CET 2016
2016-02-01 9:35 GMT+01:00 David Butler <djbutler at gmail.com>:
> This is usually called "inline if".
>
> Maybe call it "inlineif" or "iif", e..g
>
> x := iif (a < 3, 1, 2)
>
> or even
>
> x := iif a < 3 then 1 else 2;
>
>
anything is better than System.IfThen blatant incompatibility. I opt for
oxygene syntax. Anyway reverting this "ferature" in current form is very
important.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160201/bfa494f6/attachment.html>
More information about the fpc-pascal
mailing list