You're viewing a single thread.
x += 1; // Increases x by one
76 0 Reply// increase the dynamically allocated memory space of a word sized integer stored at the memory address represented by the symbol "x" by the integer 1 and terminate the instruction
64 3 ReplyWait why is it dynamically allocated and why are you increasing the memory. Something is very wrong here
38 0 ReplyFound the bug. Thank goodness for comments.
34 0 ReplyOh, is this what they meant by "commenting your code"?
3 0 Reply
Why the heck does it need to be dynamically allocated? Just put that puppy on the stack.
11 0 ReplyThat's what it used to do.
But it was a bug, and the code has been fixed.6 0 Reply
...Years later
x += config.increment; // Increases x by one
""" config.yaml increment: -2 """
20 0 Replyx++; // Move X position forward by one
There, I made that kind of comment more useful!
16 1 Replyx++; // Set x to the incrementation of the value of x
Much better.9 0 Reply// Move to the right
1 0 Reply