You know how when your making a class in python you do,
class className(object):
def __init__(self):
# INIT called first in a class
my question is how would you do this in lua? Is there even classes in lua? If so what in Lua is like the python function __init__()
I'm just starting to learn Lua 5.1 and I noticed that i haven't run into classes.
Is Luas table system used for making classes in Lua, for example.
function getName(name) return name end
local className -- class
className['getName'] = getName
className.getName('name')