Originally Posted by gmarco
And the second question.
Being defined as:
all its functions are local too automagically or it is better to defined them local too ?
Thanks.
|
I missed this question and it looks like it hasn't been answered yet.
dataobj in your code ends up being a table. Everything in the table are entries. They're neither locals nor globals. In terms of performance, each indexing operation you perform is akin to accessing a global. This also means when you have nested tables, each indexing operation stacks up when you navigate through them to reference an entry.