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.
A few question: data types & structures
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.
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.
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: A few question: data types & structures
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/
The reference manual can be found here: http://www.lua.org/manual/5.2/
- 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
I love that term!Administrator wrote:automagically
My RoM Bot toys:
- Object Viewer: http://www.solarstrike.net/phpBB3/viewt ... =27&t=2619
Teleporter Functions: http://www.solarstrike.net/phpBB3/viewt ... =27&t=2605
Waypoint Finder: http://www.solarstrike.net/phpBB3/viewt ... =27&t=2616
Mail Functions: http://www.solarstrike.net/phpBB3/viewt ... =27&t=2612
Equipment Swapper(TempFixed): http://www.solarstrike.net/phpBB3/viewt ... =27&t=2571
Who is online
Users browsing this forum: No registered users and 1 guest