Difference between revisions of "Variant"
(Document Variant properly) |
|||
Line 1: | Line 1: | ||
− | The [[ | + | 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 == | == Types == | ||
− | A [[ | + | A [[Variant]] can be a flat [[table]], a [[boolean]], a [[string]], a [[number]] or LÖVE [[userdata]]. |
== Note == | == Note == | ||
Foreign userdata (Lua's files, LuaSocket, ENet, ...), functions, and nested [[table|tables]] are not supported. | Foreign userdata (Lua's files, LuaSocket, ENet, ...), functions, and nested [[table|tables]] are not supported. | ||
+ | |||
+ | == See Also == | ||
+ | * [[parent::love]] | ||
+ | [[Category:Types]] | ||
+ | {{#set:Description=The types supported by [[love.thread]] and [[love.event]]}} | ||
+ | {{#set:Since=000}} | ||
== Other Languages == | == Other Languages == | ||
− | {{i18n| | + | {{i18n|Variant}} |
Revision as of 11:06, 31 January 2017
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 flat table, a boolean, a string, a number or LÖVE userdata.
Note
Foreign userdata (Lua's files, LuaSocket, ENet, ...), functions, and nested tables are not supported.
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