rawset

Sets the value of a table item without invoking metamethods

Prototype

rawset (table, index, value)

Description

Sets the value of table [index] to value, without invoking metamethods. 'table' must be a table, and 'index' must not be nil.

rawset (_G, "test", 42) 
print (test) --> 42

Lua functions

Topics