The following gives me an error 'syntax error near 'Person' even though in the faq (http://www.luafaq.org/) it stats: "so it cleverly uses the fact that Lua will accept single function arguments without parentheses if the argument is a string or a table"
function class(cls)
return cls
end
Person = {}
class Person
print(Person)
What am I missing here? If I change class Person to class "Person" it works, but the faq stats it should work with both strings and tables.