Code: Select all
local newitem = {x=1, y=2}
insertitem(mytable, newitem)
local newitem = {x=3, y=4}
insertitem(mytable, newitem)
local newitem = {x=5, y=6}
insertitem(mytable, newitem)
Seems program is working just fine at least currently, but is there some potential problem this could cause, and therefore I should remove those unnecessary "local"s, or is it safe to leave them as they are?