Page 1 of 1

A few question: data types & structures

Posted: Sun Mar 18, 2012 4:38 pm
by barullo
Hello there, I'm new to Lua but I do have experience programming in low level language such as C and OOP languages such as Smalltalk and Java. I red the online manual but it didn't have any information on data types or structures such as arrays. I did a brief search on the forum but I couldn't find any article on it (and I'd rather not dwell into others peoples code, since it might have an ugly programming style I'd rather not imitate haha). Some guidelines on programming style in this language are also appreciated.

Thanks,
Baru.

Re: A few question: data types & structures

Posted: Tue Mar 20, 2012 11:28 pm
by Administrator
There is no strict data types. Any variable can be any type and can can be cast automagically (similar to PHP) depending on how it is used. Really, there is only nil, strings, tables, and userdata types.

The reference manual can be found here: http://www.lua.org/manual/5.2/

Re: A few question: data types & structures

Posted: Wed Mar 21, 2012 12:33 pm
by MiesterMan
Administrator wrote:automagically
I love that term! :lol: