in reply to Re: Re: Re: Re: Re: static-like persistence of my variable due to trailing conditional
in thread static-like persistence of my variable due to trailing conditional
You're using wrong terminology here. The my part is not optimized away; that would imply that it gets removed from the optree entirely after the compiler has parsed the source, which is not the case.
The term you are looking for is "shortcircuit evaluation", which means that once an expression's "truth" can no longer change, the rest of it is not even evaluated.Makeshifts last the longest.
|
|---|