Sunday, September 27, 2015

FeedaMail: Comments for Sutter’s Mill

feedamail.com Comments for Sutter's Mill

Comment on Reader Q&A: Why was implicit int removed? by somedude

While I think this is a good change which will improve readability without sacrificing to much flexibility, the int type is still special in some circumstances, for example when doing arithmetic operations on smaller-than-int types the operands are upconverted to int first.

Read More »

Comment on A quick poll about order of evaluation… by Aaron

If I didn’t know any better, I would assume the following based off of the OOO.

v[i++] = i++; // Just evaluating this expression.

v[i++] // place address of v[0] on the stack, increment i (i == 1);
i++ // load i (i == 1) on the stack, increment i (i == 2);
= // pop the value 1 from the stack, pop address of v[0] from the
// stack, assign v[0] the value of 1;

I would expect an output of 10.

Read More »

Comment on A quick poll about order of evaluation… by somedude

I hope the result of the voting isn’t undefined.

Read More »
 
Delievered to you by Feedamail.
Unsubscribe

No comments:

Post a Comment