Monday, September 19, 2011

A lot of good that did...

Then: "I, Rick Perry, Governor of Texas, under the authority vested in me by the Constitution and Statutes of the State of Texas, do hereby proclaim the three-day period from Friday, April 22, 2011, to Sunday, April 24, 2011, as Days of Prayer for Rain in the State of Texas."

Now: "In the past seven days Texas Forest Service has responded to 176 fires for 126,844 acres."

Functional Evaluation

I have some iPad development to do in the near future and I need to learn Objective C. Since Objective C is a super-set of the C programming language, I figured I would finally work my way through the KnR C book. I taught myself how to program in C, which means I most certainly have some gaps in my knowledge that could be filled.

This is one of those embarrassing gaps that falls into the "everyone probably knew this but me" file...

 Somewhere at the end of chapter 2 it says:

"C, like most languages, does not specify the order in which the operands of an operator are evaluated. (The exceptions are &&, ||, ?:, and ',' .) For example in a statement like x = f( ) + g( ); f may be evaluated before g or vice versa; thus if either f or g alters a variable on which the other depends, x can depend on the order of the evaluation." 

This whole time I had naively assumed that evaluation was always done from left to right...