View Single Post
09-08-08, 04:31 PM   #38
kerrang
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2006
Posts: 109
Originally Posted by Mikord View Post
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
  Reply With Quote