You Made a Mistake

  • 2 Replies
  • 2806 Views
*

Offline SingingSurger

  • 67
  • 0
  • Dang, I get my shirt stretched out.
    • View Profile
You Made a Mistake
« on: June 24, 2011, 00:43:39 »
Document major mistakes you made in your life so we can combine them into one giant mistake.
Ah, look at all the lonely people.

*

Offline LB

  • 78
  • 0
  • I failed the Turing test.
    • View Profile
    • LB-Stuff
Re: You Made a Mistake
« Reply #1 on: June 24, 2011, 05:12:47 »
I made the mistake of assuming that in C++ parameters to functions are evaluated left to right, but actually the order is undefined by the C++ code standard and thus it is implementation specific. This was messing me up because they were going from right to left and not left to right as I had assumed.

EDIT: oh, uh, I guess C++ is a bit much. Does it count as a mistake that I was too in-depth?

*

Offline SingingSurger

  • 67
  • 0
  • Dang, I get my shirt stretched out.
    • View Profile
Re: You Made a Mistake
« Reply #2 on: June 24, 2011, 22:37:35 »
I made the mistake of assuming that in C++ parameters to functions are evaluated left to right, but actually the order is undefined by the C++ code standard and thus it is implementation specific. This was messing me up because they were going from right to left and not left to right as I had assumed.

EDIT: oh, uh, I guess C++ is a bit much. Does it count as a mistake that I was too in-depth?
I use C++. That's quite a mistake.
Ah, look at all the lonely people.