Quote Originally Posted by pitfiend View Post
As far as I know, Delphi has a shortcut evaluator for booleans. But this is going to push it to the limits
I can't see why a compiler should have a hard time optimizing the code. It seems to me, it would be simple to add a rule saying something like:

Code:
if our code says
   boolean = True
then replace the code with
   boolean
This should be quite easy when you've made a syntax tree.