[fpc-devel] if-then-else expression

Marco van de Voort fpc at pascalprogramming.org
Sat Aug 30 22:26:59 CEST 2025


Op 29-8-2025 om 16:30 schreef Hairy Pixels via fpc-devel:
> On Aug 28, 2025 at 5:10:56 AM, Sven Barth via fpc-devel 
> <fpc-devel at lists.freepascal.org> wrote:
>> Also there *will* be the if-then-expression, the question is only 
>> when the merge request is finalized enough (I currently can't check, 
>> so I can't comment on any progress there).
>
>
> I didn’t realize it was imminent.
>
> What about this:
>
>   if (if x > 10 then 1 else -1) > 0 then
>     ;
>
> You can do confusing things like this too right? I don’t think we’re 
> going to avoid confusion with the intrinsic or this syntax.

Determining the type of the nested IF is more complex in this case I guess.



More information about the fpc-devel mailing list