Originally Posted by Nibelheim
Woops. Forgot a part. First file should be:
Lua Code:
local addon, ns = ... ns[1] = {} ns[2] = {} local Funs, Settings = unpack(select(2, ...)) Settings.defaults = { x = 0, y = 0, } Funs.updateSettings = function() -- do stuff end
|
Why use "select(2, ...)" as argument to unpack when you can just pass in ns instead (which should be better performance-wise)?