Created
October 19, 2010 14:14
-
-
Save benjaminws/634253 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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