Advanced

Trick Lua into becoming an object-oriented language

Posted by bob on
Opensource.com; By Seth Kenlon
Mail this story
Print this story

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

  Nav
» Read more about: Story Type: News Story; Groups: Developer, Python, Red Hat

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

This topic does not have any threads posted yet!

You cannot post until you login.