Lua script functions

I recently added Lua scripting to my data-driven component system (which is itself written in Lua). I wanted a script file to behaves like a function call (as opposed to a module). Lua compiles a script into a “chunk”, which is treated as a function with a variable number of arguments, and may return a [...]

Introduction to my Lua experience

Lately, I’ve been doing a lot of programming in Lua. I prefer the combination of Lua and ANSI C to programming in C++. I write most of my code in Lua, and use ANSI C to write “high performance” code, features that Lua does not handle well, and bindings to existing C libraries. I also [...]