Correctly remove values stored in the array-part of a table.

This commit is contained in:
Ian Farmer
2007-12-12 19:19:03 +00:00
parent eef737fde1
commit 60cc93d64c
5 changed files with 35 additions and 1 deletions

12
src/test/res/test8.lua Normal file
View File

@@ -0,0 +1,12 @@
t = {}
t[1] = "foo"
t[2] = "bah"
print(t[1])
print(t[2])
print(t[3])
t[1] = nil
t[2] = nil
print(t[1])
print(t[2])
print(t[3])