Implement most of metatables

This commit is contained in:
James Roseborough
2007-06-17 02:58:40 +00:00
parent 5d3c86e552
commit 54927db2fc
6 changed files with 68 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
t = { 11, 22, 33, you='one', me='two' }
--[[
for a,b in pairs(t) do
print( a, b )
end
@@ -12,7 +12,6 @@ print( "me", me )
print( "fred", fred )
print( "t[me]", t[me] )
print( "t[fred]", t[fred] )
--]]
-- basic metatable setting
t = { 11, 22, 33, you='one', me='two' }