[fpc-pascal] New feature: IfThen() intrinsic

Maciej Izak hnb.code at gmail.com
Mon Feb 1 16:12:52 CET 2016


2016-02-01 16:07 GMT+01:00 Michael Van Canneyt <michael at freepascal.org>:
>
> Then you preclude
>
> Var
>  &if : Integer;
>
> This is a really bad idea. The whole idea of & is to make the above
> possible, so you are going to make an exception on an exception ?
>
> You really want to create monstrosities as
>
>   &if:=system.&if(a>3,1,3) * b
>
> Really guys, I know it is ugly, but we don't have to add to it even more;
>
> Using & in a system intrinsic identifier: how crazy can you get ?
>


Looks good and clever. Logical choice. How often you have variables with &
prefix?

-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160201/d39154ba/attachment.html>


More information about the fpc-pascal mailing list