lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

OOP-like functions, using the ':' syntax aren't local nor global, they're put
into the 'object' table.  just remove the 'local' keyword

taking the local declarations away works, but the Account and SpecialAccount objects are now visible in the global env table _G which defeats the purpose of declaring it in a package. How can I do it while keeping those objects hidden from outside users.