Wednesday, October 11, 2006

Torture Bill as C Code

Having made this coding error several times myself, this makes me laugh.

Schneier on Security: Torture Bill as C Code

Kevin boils down the new terrorist (and others) arrest/detainment/torture bill into a small piece of C code:

if (person = terrorist) {
     punish_severely();
} else {
     exit(-1);
}

There's one obvious error, but there are other problems with the code. Anyone care to comment? (BoingBoing commentary.)

(Torture Bill as C Code via Schneier on Security.)

1 comment:

Bob Plankers -- lonesysadmin.net said...

No, that's the way the government wants it. :-) Most citizens would prefer an "==" though.