Originally Posted by Mikord
Naturally, but chances are you'd name it more descriptive like OWUberBagMod. What is more likely, having a collision with one global element, or having a collision with one of many global variables and functions in your mod?
|
I've noticed some mods declare their functions within their Frame - I assume this is just another way of having a 'namespace' (as a frame is just a table too?)
e.g.
Code:
local eventFrame = CreateFrame("Frame","OBI")
eventFrame.myfunc = function() ... end
or
Code:
local eventFrame = CreateFrame("Frame","OBI")
function eventFrame.myotherfunc()
...
end