Skip to content

Instantly share code, notes, and snippets.

@benjaminws
Created October 19, 2010 14:14
Show Gist options
  • Save benjaminws/634253 to your computer and use it in GitHub Desktop.
Save benjaminws/634253 to your computer and use it in GitHub Desktop.
x = function()
y = function()
local table = 5
end
local old_table = table
y()
table.insert(old_table, 4)
assert(table == old_table and table ~= 5)
end
x()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment