[fpc-pascal] New feature: IfThen() intrinsic
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Sun Jan 31 16:02:51 CET 2016
Sven Barth wrote:
> 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.
Thanks for that, it will make maintaining some Pascal transcribed from
Javascript much easier.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list