cellio: (sheep-sketch)
[personal profile] cellio
From [livejournal.com profile] patrissimo, who got it from others:

It occurs to me now that the whole 94-page bill really amounts to a common, one-character programming error.
if (person = terrorist) {
   punish_severely();
   } else {
     exit(-1);
   }

Uh, I don't get it...

Date: 2006-10-04 12:53 am (UTC)
From: [identity profile] rob-of-unspace.livejournal.com
There's obviously something wrong with that, based on the setup, but I don't see it. It has been a while since I've C'd, and most of that was C++. Help for the clueless?

Re: Uh, I don't get it...

Date: 2006-10-04 12:36 pm (UTC)
goljerp: Photo of the moon Callisto (Default)
From: [personal profile] goljerp
Actually, while I saw the bug (I'm a Java person, not so much C/C++), in Java I think the compiler would complain about the code as written. Unfortunately, I think the current supreme court is much more likely to let that pass than the Java compier.

Expand Cut Tags

No cut tags