Incidentally, some good replies from The Daily WTF...
Here's what the code maybe should look like:
if ( you.understand(this) ) { you.need("a girlfriend") }
And here's just a good response:
if (you == write_ads_like.this) {
get.a.programming.book;
}
No, the original code works in C. You can have a struct with a 'this' member. Consequently, 'you' and 'this' are the same type. But the code it executes as a result of the condition is dead code (e.g. the statement '5;' is dead code).
struct lame {
int this;
};
struct lame3 {
int girlfriend;
}
struct lame2 {
struct lame3 a;
};
int you;
struct lame understand;
struct lame2 get;
if ( you == understand.this ) { /* Legal */
get.a.girlfriend; /* Dead code - does nothing */
}
I know this is probably over analyzing an ad...