Does not matter, When the ternary was put in it effected the normal IF operation.
If ( someExpression ) Then....
it causes unwanted effects now.
I don't know the exact version we have at work, its possible it has been fixed with a patch but I believe it was just release not to long ago and the Ternary operator was one of the features it claimed.
I was reading some threads about someone finding out that placing the Expression within a closure (....) causes the compiler to generate bad code.
In any case, I play today at work and I am not sure if I could get it to fail but I wanted to see how the ternary operator works in Delphi now, from what I can see, It does not seem like its fully working correctly or I don't understand something.
I did a complex ternary operation and it looks like the compiler wasn't processing it correctly.
I tried something on the line of this
Value := If (Expression) Then If (Expression) else (Expression);
Removing the "(..)" changed the behavior.
Like I said, I don't understand it fully I guess, its a good thing I didn't pay for the new Liecense
