Hi there,
When you are developing an app for mobile, one of your concerns, is to conserve memory allocation. When you are creating a variable, you should always set it free, since you don’t use it anymore, so the garbage collector works as expected.
Should this be done for each variable? Like, even variables inside tables?
Example:
[lua]
local a = 1
local b = ‘asd’
local c = {
foo = function () end,
[1] = ‘…’,
tab = {
boo = 123,
}
}
[/lua]
In the code above, the variables a, b and c should be freed from memory right? Should the same happen with: c.foo, c[1], c.tab.boo and c.tab?
Thanks,
Carlos HR.