[fpc-pascal] if-then-else expression
Sven Barth
pascaldragon at googlemail.com
Mon Feb 1 21:16:57 CET 2016
On 01.02.2016 21:14, Sven Barth wrote:
> Hello together!
>
> Time for the next flame. I've attached a patch which implements an "if
> Condition then ThenExpr else ElseExpr"-expression for those that want to
> play around with it. It follows the same principles as the
> yet-to-be-renamed IfThen() (namely that the type is determined by the
> ThenExpr) as it's just a different syntax with the same (copy & pasted)
> code behind it...
>
> Note: this patch *might* also work with 3.0.0 or even 2.6.4...
And I just noticed that I sent this to fpc-devel instead of
fpc-pascal... *sigh*
So here it is again for fpc-pascal as well.
Regards,
Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inline-if-expr.patch
Type: text/x-patch
Size: 3507 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160201/7a0b5d5a/attachment.bin>
More information about the fpc-pascal
mailing list