Ok, so i've been looking at a few addons seeing how they replace the default WoW UI. All seem to do Frame:Hide(). I was thinking this isn't a very memory effective way, especially if you dont intend to use the frame at all. I've been messing around with this, what i found is even when you hide the frame it still calls its update functions. Atleast this is the only way i can explain getting an error from the update function when i set the frame to nil.
I'm still learning how the UI works and Addons in general. What i want to know has anyone ever done something like set the frame to nil, then setting the frame attributes, hopfully overriding any function pointers still in memory. If anyone has, what all needs to be overriden?
I'm still a little uncertain about the Ui, to really try this myself atm. From my meagre attempts, i believe AddOns are loaded after blizzard ones. All the functions are global, this means we can even replace them with functions of the same name? Not sure on that LUA scope im still a little unsure of.