Difference between revisions of "Rawset"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Sets the real value of table[index] to value, without invoking any metamethod. table must be a table,...")
 
Line 7: Line 7:
 
  This function returns table.
 
  This function returns table.
 
<source lang="lua">
 
<source lang="lua">
(table), = rawset(tablekeyvalue,)
+
(table) = rawset(table,key,value)
 
</source>
 
</source>
'''table:''' (table) table to set the value to ''''''<br/>
+
'''table''': (table) table to set the value to ''''''<br/>
'''key:''' (any) key of the table to set the value to ''''''<br/>
+
'''key''': (any) key of the table to set the value to ''''''<br/>
'''value:''' (any) value to store in the table ''''''<br/>
+
'''value''': (any) value to store in the table ''''''<br/>
 
'''Returns''' (table) provided table<br/>
 
'''Returns''' (table) provided table<br/>

Revision as of 11:17, 23 August 2018

Available since: Gideros 2011.6

Description

Sets the real value of table[index] to value, without invoking any metamethod. table must be a table, index any value different from nil, and value any Lua value.


This function returns table.
(table) = rawset(table,key,value)

'table: (table) table to set the value to '
'key: (any) key of the table to set the value to '
'value: (any) value to store in the table '
Returns (table) provided table