function makeTable(name)
name = {}
end
Wouldn't this create a table named "name"? How would I be able to make a function like this? I see no real use for this, but I'm just curious.
Posted 07 February 2013 - 06:31 PM
function makeTable(name)
name = {}
end
Posted 07 February 2013 - 06:34 PM
Posted 07 February 2013 - 06:37 PM
tesla1889, on 07 February 2013 - 06:34 PM, said:
Posted 07 February 2013 - 06:46 PM
Posted 07 February 2013 - 06:48 PM
Posted 07 February 2013 - 10:37 PM
function makeTable(name)
_G[name] = {}
end
makeTable("myTable")
print(type(myTable)) -- this'll print "table"
0 members, 2 guests, 0 anonymous users