x = "temp"
temp = {1,2,3}
function silly(t)
for i,v in pairs(t) do something end
end
I want to pass x to my function, and have it call the function on table temp. That is, I want to take a string, and find a table with that name. Maybe use loadstring() ? gettable ? I've tried a few random things with no success.