Obscure C code (was Re: Excessive optimization)

Sean Conner spc at conman.org
Sat Dec 4 04:37:10 CST 2010


It was thus said that the Great Christian Corti once stated:
> 
> > Of course, there's always "FT"[!!b]
> 
> This doesn't change much because !!123 may still be 123 instead of 1.

  Nope.  !b will turn 0 to 1, and anything not 0 to 0.  

	!!-1  = !(!-1)  = !(0) = 1
	!!123 = !(!123) = !(0) = 1
	!!0   = !(!0)   = !(1) = 0

  -spc 





More information about the cctalk mailing list