Wednesday, February 14, 2007

Programming in Lua - 3. Expressions

Well, the expressions chapter was a hard one to digest as a reader. I also saw an error in the text. It mentioned sin(0) as a valid expression, while I needed to type math.sin(0) to avoid throwing an error. Must be based on an older version of Lua.

For the rest, it was very theoretical, not much practical code, alas. This is a chapter, like chapters 1 and 2, you have to go through, hoping it will someday give you enough knowledge to produce better code.

Reference: Programming in Lua - chapter 3

No comments: