Difference between revisions of "Variant"
(Document Variant properly) |
m |
||
Line 2: | Line 2: | ||
== Types == | == Types == | ||
− | A [[Variant]] can be a | + | A [[Variant]] can be a [[table]], a [[boolean]], a [[string]], a [[number]] or LÖVE [[Object]]s. |
− | == | + | == Notes == |
− | Foreign userdata (Lua's files, LuaSocket, ENet, ...), functions | + | 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]]. | ||
== See Also == | == See Also == |
Revision as of 03:21, 25 March 2018
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.
Contents
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 0.11.0.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info