[fpc-devel] new features and facilities
Sven Barth
pascaldragon at googlemail.com
Tue Oct 13 11:18:23 CEST 2015
Am 13.10.2015 09:34 schrieb "Michael Van Canneyt" <michael at freepascal.org>:
>
>
>
> On Mon, 12 Oct 2015, Marco van de Voort wrote:
>
>> In our previous episode, Michael Van Canneyt said:
>>>>>
>>>>>
>>>>> I'm not sure this kind of semantics is possible with a compiler
>>>>
>>>> intrinsic...
>>>>>
>>>>> But if it is: In that case the IfThen or IIF() or somesuch has my
>>>>
>>>> absolute top preference, followed by ternary. (and the If .. then
>>>> expression should be blasted to hell ;) )
>>>>
>>>> Yes a compiler intrinsic could handle that. In the end all three
syntaxes
>>>> are the same code representation anyway: namely an if-node.
>>>> The IfThen() intrinsic would be fine with me as well. Let's call this
our
>>>> common ground ;)
>>>
>>>
>>> Agreed !
>>
>>
>> (ifthen clashes name with the delphi functions of the same name in a much
>> used unit as math, the name should be different but the intrinsic
principle
>> IMHO is best)
>
>
> IIF ?
As someone else already wrote name clashes shouldn't be a problem as Math
is always used after System and thus Math.IfThen takes precedence.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20151013/f8e9153f/attachment.html>
More information about the fpc-devel
mailing list