Thread: Global vars ?
View Single Post
11-03-14, 01:17 AM   #15
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by AlleyKat View Post
I like to store my data in build-in table, also I like to use my main storage as frame-type-table (events and etc..), and my storage must be available outside. What is pointless? Make a lot of global variables, tables and frames or use one extended table (build-in)?
Your method still creates a frame object in addition to the private table. Using multiple layers of metatables and trickery to make the private table identical to the frame is pointless and inefficient. Just use the frame, and don't use the private table. That doesn't create any more global variables, tables, or frames than your current convoluted method.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote