Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

=+ Operator

Name: Anonymous 2010-08-25 4:36

Fuck, I've just been searching for a bug in my program for about three quarters of an hour. It ended up just being a single character typo.

I had typed 'Length =+ 2' instead of 'Length += 2'. The thing I can't understand is why GCC allowed it (even with -Wall). I've Googled and it's not a legal operator.

What the hell is it doing?

Name: Anonymous 2010-08-25 8:14

This reminds me of the "goes to" operator:

int x = 100;
while (x --> 0) {
  printf("%i bottles of beer on the wall\n", x);
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List