[fpc-pascal] New feature: IfThen() intrinsic
Maciej Izak
hnb.code at gmail.com
Mon Feb 1 12:32:23 CET 2016
2016-02-01 11:28 GMT+01:00 Sven Barth <pascaldragon at googlemail.com>:
> I have to admit though that I forgot about the potential problems due to
> refactoring. I'll change the name to avoid this pitfall, though I've yet to
> decide which one.
>
My proposition is:
function &if(Condition: Boolean; ThenExpr, ElseExpr: type): type;
& is used rarely (and it is legal ident part), collision with existing code
base is minimal. Looks almost like regular Pascal syntax ;).
--
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160201/5b987931/attachment.html>
More information about the fpc-pascal
mailing list