[fpc-devel] if-then-else expression
    Mattias Gaertner 
    nc-gaertnma at netcologne.de
       
    Thu Aug 28 10:54:47 CEST 2025
    
    
  
On 8/27/25 16:40, Hairy Pixels via fpc-devel wrote:
>   On Aug 26, 2025 at 3:49:43 AM, Nikolay Nikolov via fpc-devel <
> fpc-devel at lists.freepascal.org> wrote:
>[]
> I think if the call was inlined it wouldn’t but otherwise it would.
Inlining must not change the behavior.
Nikolay is right, that full or part evaluation is an important 
difference here.
Another is the unbelievable (well at least for most users) complexity of 
an if-expression for a Pascal compiler, as it has to determine the 
result type.
Mattias
    
    
More information about the fpc-devel
mailing list