View Single Post
12-07-17, 03:27 AM   #5
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Originally Posted by Naisz View Post
But i guess, that ns.<functionname> then refers to the name of the function inside the namespace rather than a function inside the namespace.
No, function tbl:func() is just syntactic sugar for tbl.func = function(self). Just like calling tbl:func() is syntactic sugar for tbl.func(tbl). You can read more about Lua's function definitions here.

Originally Posted by Kanegasi View Post
Code:
function ns["UpdateAuraIcon"](ns, button)
That's not valid Lua, unless you meant to call the function. In that case you have to remove function from the line.
__________________
「貴方は1人じゃないよ」
  Reply With Quote