Difference between revisions of "Rawset"

From GiderosMobile
Line 3: Line 3:
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/(global)|(global)]]<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/(global)|(global)]]<br/>
 +
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
<translate>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.  
+
<translate>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.</translate>
 
  This function returns table.</translate>
Line 11: Line 11:
 
(table) = rawset(table,key,value)
 
(table) = rawset(table,key,value)
 
</source>
 
</source>
 +
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''table''': (table) <translate>table to set the value to</translate> <br/>
 
'''table''': (table) <translate>table to set the value to</translate> <br/>
 
'''key''': (any) <translate>key of the table to set the value to</translate> <br/>
 
'''key''': (any) <translate>key of the table to set the value to</translate> <br/>
 
'''value''': (any) <translate>value to store in the table</translate> <br/>
 
'''value''': (any) <translate>value to store in the table</translate> <br/>
 +
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (table) <translate>provided table</translate><br/>
 
'''<translate>Returns</translate>''' (table) <translate>provided table</translate><br/>
 +
 +
{{(global)}}

Revision as of 04:27, 11 February 2020


Available since: Gideros 2011.6
Class: (global)

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)

Parameters

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

Return values

Returns (table) provided table