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?

(no subject)

Date: 2006-10-04 01:30 am (UTC)
From: [identity profile] zare-k.livejournal.com
Heh heh, excellent.

(no subject)

Date: 2006-10-04 01:34 am (UTC)
From: [identity profile] schulman.livejournal.com
Oh, that's beautiful.

(For tragically depressing values of beautiful.)

(no subject)

Date: 2006-10-04 01:50 am (UTC)
From: [identity profile] metahacker.livejournal.com
I want a type-safe administration.

(no subject)

Date: 2006-10-04 02:01 am (UTC)
From: [identity profile] nsingman.livejournal.com
They'd have caught the bug (assignment operator instead of equality test) had "terrorist" been defined as a constant, and the condition been written "if (terrorist = person)."
:-)

(no subject)

Date: 2006-10-04 02:18 am (UTC)
siderea: (Default)
From: [personal profile] siderea
*snorfl*

Brilliant.

(no subject)

Date: 2006-10-04 02:50 am (UTC)
From: [identity profile] mhnicholson.livejournal.com
I am so meming that.

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.

(no subject)

Date: 2006-10-04 03:29 pm (UTC)
From: [identity profile] mrpeck.livejournal.com
It is so hard why I laugh at these things when I'm in our computer lab.

(no subject)

Date: 2006-10-04 04:28 pm (UTC)
jducoeur: (Default)
From: [personal profile] jducoeur
That is beautifully subtle. I know C well, and it still took a minute for the "pun" to sink in. (It's playing on the nuances and ambiguities of the language, therefore it's a pun. A double-entendre, even...)

(no subject)

Date: 2006-10-05 12:49 am (UTC)
sethg: picture of me with a fedora and a "PRESS: Daily Planet" card in the hat band (Default)
From: [personal profile] sethg
And these are the same guys who don't want us to implement a subclass (ahem) of Marriage that takes two Male or two Female objects in its constructor....

(no subject)

Date: 2006-10-08 06:44 pm (UTC)
From: [identity profile] http://users.livejournal.com/merle_/
Most excellent.. and I hate to admit how often that one character has caused me grief and woe in JavaScript.

Expand Cut Tags

No cut tags