Python vs Lua, data structure

June 28th, 2008 mysurface

In python, we have various type of data structure, such as list, set, tuple, dictionary etc, but in Lua, we only have table. Table in Lua can be used as array, list, dictionary or object. Let see how you we construct list from Lua table. t = { ‘a’,'b’,'c’,'d’,'e’,'f’ } To print out the whole [...]

Posted in Developer, Lua, python | Hits: 82595 | 5 Comments »

How to embed Lua 5.1 in C++

June 7th, 2008 mysurface

Lua, is a scripting language providing dynamic data structures, maths, io and string manipulations just like any interprete language such as Bash, Python, Ruby etc. What is so special about Lua? Lua is Fast, Light-weight and Embeddable. Lua can be embedded into c and c++ programs and Lua core are statically complied with your c++ [...]

Posted in Developer, Lua | Hits: 60791 | 2 Comments »