Keith's Blog

We have a winner

First post in awhile...


While doing some code merging today, we found this

n += lpad = ( n += rpad ) % 2;

Just sit and enjoy that for a moment.


2 Comments:

At 2/02/2007 06:23:00 PM, Blogger Unknown said...

I don't get it

 
At 2/05/2007 08:27:00 AM, Blogger karoberts said...

n, lpad, rpad are integers.

"a += b" is the same as "a = a + b"

and ... well, just know that this goofy code can have undefined behavior, and has been removed

 

Post a Comment

<< Home