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

Maciej Izak hnb.code at gmail.com
Mon Feb 1 13:15:35 CET 2016


2016-02-01 13:09 GMT+01:00 Michael Van Canneyt <michael at freepascal.org>:
>
> No. The compiler already uses &.
>
> & means 'the following is an identifier even if it is a keyword'.
>
> You can perfectly declare and compile:
>
> Var
>   &if : integer;
>
> begin
>   &if:=1;
> end.
>
> So &if is a bad idea.


Yes it is possible. Anyway it is better idea than IfThen. You treat facts
selectively. How often is used &if and how often is used IfThen?

&IfThen looks also good (I like shorter syntax &if). With "&" prefix it is
obvious that this function is unique.

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


More information about the fpc-pascal mailing list