Jump to content
Registration disabled at the moment Read more... ×
EugeneK

A Conditional Ternary Operator for the Delphi

Recommended Posts

5 minutes ago, Uwe Raabe said:

That crashes when Foo = nil and Short-Circuit Boolean Evaluation is off.

Yes, but who turns that off? Much code (even in System units) will fail with that setting off, and lots of code will be executed unnecessarily (and may even produce wrong results since it isn't supposed to be called).

  • Like 2

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×