Name
RawSet -- write value to table without metamethods (V2.0)
Synopsis
RawSet(t, key, val)
Function
This function writes the specified value to the specified table at index key. The specified value can be of any type (number, string, table, function, etc.). Basically, this function does the same as the following expression:

 
t[key] = v

The only difference is that RawSet() will never invoke any metamethod so that you have full and immediate access to all table fields. See Metamethods for details.

Inputs
t
table to modify
key
key to write
val
value to set key to

Show TOC