Quote Originally Posted by ZorbaTHut View Post
Quote Originally Posted by Lorandii View Post
Or use the global _G which is preferred, but not "best".
Code:
local MyAddon, privateTable = ... -- local reference for speed and bug catching _G["MyAddon"] = MyAddon -- create global reference  function MyAddon:SomeFunction()     -- do something end
Tiny Lua detail - note that this is equivalent to:
Code:
local MyAddon, privateTable = ... -- local reference for speed and bug catching _G.MyAddon = MyAddon -- create global reference  function MyAddon:SomeFunction()     -- do something end
Jump to post...