LuaNET, the lua 5.1 api documentation!

Lua-Api

Core

[LUA 5.1] setmetatable

function setmetatable ( table, metatable )
Sets the metatable for the given table. (You cannot change the metatable of other types from Lua, only from C.)
If metatable is nil, removes the metatable of the given table.
If the original metatable has a "__metatable" field, raises an error.

This function returns table.

Comments

© 2007 DracoBlue :: Valid XHTML, CSS, RSS Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | SourceNet © 2007, DracoBlue :: Page created in 0.413 seconds with 20 queries.