Difference between revisions of "Variant"

m
m (0.11.0 -> 11.0)
(One intermediate revision by one other user not shown)
Line 7: Line 7:
 
Foreign userdata (Lua's files, LuaSocket, ENet, ...), and functions are not supported.
 
Foreign userdata (Lua's files, LuaSocket, ENet, ...), and functions are not supported.
  
Nested tables are not officially supported in versions prior to [[0.11.0]].
+
Nested tables are not officially supported in versions prior to [[11.0]].
  
 
== See Also ==
 
== See Also ==
 
* [[parent::love]]
 
* [[parent::love]]
 
[[Category:Types]]
 
[[Category:Types]]
{{#set:Description=The types supported by [[love.thread]] and [[love.event]]}}
+
{{#set:Description=The types supported by [[love.thread]] and [[love.event]].}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
  
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Variant}}
 
{{i18n|Variant}}

Revision as of 14:16, 10 January 2019

The Variant type is not a real lua type, but instead indicates what lua values LÖVE can store internally. It is used in love.thread and love.event. Indeed, as it is a "virtual" type, it has no specific representation in lua, and no methods.

Types

A Variant can be a table, a boolean, a string, a number or LÖVE Objects.

Notes

Foreign userdata (Lua's files, LuaSocket, ENet, ...), and functions are not supported.

Nested tables are not officially supported in versions prior to 11.0.

See Also


Other Languages