Lore archive · Warcraft Wiki, 2023 dump
API setmetatable
Last wiki revision 2022-08-01
Sets the metatable for the given table. table = setmetatable(table [, metatable])
- table: - The table to assign or remove the metatable of.
- metatable: - The metatable to be assigned, or nil to remove an existing metatable.
- table: - The table passed in as the first argument.
- The Lua 5.1 reference manual extensively documents the fields that can be set on a metatable.
- As a non-standard extension, metatables can contain an field which impacts the behavior of getfenv.
Source
https://warcraft.wiki.gg/wiki/API_setmetatable · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.