[fpc-devel] new features and facilities

Marco van de Voort marcov at stack.nl
Mon Oct 12 22:01:46 CEST 2015

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)

More information about the fpc-devel mailing list