Obscure C code (was Re: Excessive optimization)

Eric Smith eric at brouhaha.com
Fri Dec 3 19:27:34 CST 2010


Philip Pemberton wrote:
 > A better way:
 > b?'T':'F'
[...]
 > Just it does it without tricky pointer math, and is
 > more likely to work across different compilers.

You've lost me on how that's better than "TF"[!b], or why it would be 
"more likely to work across different compilers".  There's no tricky 
pointer math to it.

Eric




More information about the cctalk mailing list