Created
May 15, 2011 19:42
-
-
Save mebens/973469 to your computer and use it in GitHub Desktop.
For kikito
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
foo = { hello = 3, world = 4 } | |
bar = setmetatable({ exclamation = 5 }, { __index = foo }) | |
x = table.attributes(bar) -- I have no idea what would be a fitting name for this function | |
-- x = { hello = 3, world = 4, exclamation = 5 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment