Trick Lua into becoming an object-oriented language
Lua isn't an object-oriented programming language, but a scripting language utilizing C functions and a C-like syntax. However, there's a cool hack you can use within Lua code to make Lua act like an object-oriented language when you need it to be. The key is in the Lua table construct, and this article demonstrates how to use a Lua table as a stand-in for an object-oriented class.
|
|
Full Story |
This topic does not have any threads posted yet!
You cannot post until you login.