Difference between revisions of "Variant"

m (0.11.0 -> 11.0)
(Notes: - Mention nil as an unsupported type.)
Line 5: Line 5:
  
 
== Notes ==
 
== Notes ==
Foreign userdata (Lua's files, LuaSocket, ENet, ...), and functions are not supported.
+
Foreign userdata (Lua's files, LuaSocket, ENet, ...), functions and <code>nil</code> are not supported.
  
 
Nested tables are not officially supported in versions prior to [[11.0]].
 
Nested tables are not officially supported in versions prior to [[11.0]].

Revision as of 13:51, 24 August 2021

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, ...), functions and nil are not supported.

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

See Also


Other Languages