[fpc-devel] if-then-else expression

Hairy Pixels genericptr at gmail.com
Fri Aug 29 16:30:56 CEST 2025


 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20250829/9637a074/attachment.htm>


More information about the fpc-devel mailing list