Tuesday, February 6, 2007

Types in Lua

I've read through chapter 2 of Programming in Lua.

Lua is a dynamically typed language. There are no type definitions in the language; each value carries its own type. There are eight basic types in Lua: nil, boolean, number, string, userdata, function, thread, and table.

Nil, boolean, number, and string are discussed in this chapter. Functions, tables and userdata are introduced, buth threads are left for another chapter, because it is so advanced.

I should probably reread this chapter before going on to the next (Expressions). I know the items discussed in this chapter 2 seem trivial, but it can't hurt to see if I've skipped some "obvious knowledge", and to embed it all into my memory.

No comments: