[fpc-devel] if-then-else expression

Sven Barth pascaldragon at googlemail.com
Mon Feb 1 21:14:53 CET 2016


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...

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-devel/attachments/20160201/3f0ed4ae/attachment.bin>


More information about the fpc-devel mailing list