Difference between revisions of "Variant"

Line 1: Line 1:
Value is not a Lua type, just represents all of type like [[string]], [[number]], [[boolean]], LÖVE object, or [[table]].
+
Value represents all of Lua type, but it's not that exists in Lua really.
  
In [[Thread]](or [[Channel]]), The value is boolean, string, number, LÖVE userdata, or a simple flat table. Foreign userdata (Lua's files, LuaSocket, ENet, ...), functions, and tables inside tables are not supported.
+
In [[Thread]](or [[Channel]]), The value of the message can be a boolean, string, number, LÖVE userdata, or a simple flat table. Foreign userdata (Lua's files, LuaSocket, ENet, ...), functions, and tables inside tables are not supported.
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|value}}
 
{{i18n|value}}

Revision as of 05:48, 26 January 2014

Value represents all of Lua type, but it's not that exists in Lua really.

In Thread(or Channel), The value of the message can be a boolean, string, number, LÖVE userdata, or a simple flat table. Foreign userdata (Lua's files, LuaSocket, ENet, ...), functions, and tables inside tables are not supported.

Other Languages