A few question: data types & structures

Discuss, ask for help, share ideas, give suggestions, read tutorials, and tell us about bugs you have found with MicroMacro in here.

Do not post RoM-Bot stuff here. There is a subforum for that.
Forum rules
This is a sub-forum for things specific to MicroMacro.

This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
Post Reply
Message
Author
barullo
Posts: 1
Joined: Sun Mar 18, 2012 4:26 pm

A few question: data types & structures

#1 Post by barullo » Sun Mar 18, 2012 4:38 pm

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.

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: A few question: data types & structures

#2 Post by Administrator » Tue Mar 20, 2012 11:28 pm

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/

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: A few question: data types & structures

#3 Post by MiesterMan » Wed Mar 21, 2012 12:33 pm

Administrator wrote:automagically
I love that term! :lol:

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests