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

silvioprog silvioprog at gmail.com
Mon Feb 1 19:28:43 CET 2016


On Mon, Feb 1, 2016 at 3:23 PM, silvioprog <silvioprog at gmail.com> wrote:
[...]

> It would be nice if the programmer could choose it from some compiler
> switch, something like:
>
> {$define ifthendecl := InlineIf}
>
> or:
>
> {$define ifthendecl := iif} // my favourite :3
>
> or:
>
> {$define ifthendecl := &if}
>
[...]

Damn Gmail ctrl+enter... -.-'

I meant:

{$define TheFavouriteProgrammerWord := System.InlineIf}

so:

S := TheFavouriteProgrammerWord(Cond, TVal, FVal);

-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160201/4807184d/attachment.html>


More information about the fpc-pascal mailing list