Difference between revisions of "Variant"
(Extend article and make it more clear.) |
|||
Line 1: | Line 1: | ||
− | + | The value type is used to indicate, that all of Lua's types can be used in a certain place (e.g.: as arguments). | |
+ | |||
+ | It is an artifical type solely created for the wiki and doesn't exist in Lua. | ||
+ | |||
+ | == Types == | ||
+ | A value 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 [[table|tables]] inside [[table|tables]] are not supported. | ||
− | |||
== Other Languages == | == Other Languages == | ||
{{i18n|value}} | {{i18n|value}} |
Revision as of 12:49, 12 October 2014
The value type is used to indicate, that all of Lua's types can be used in a certain place (e.g.: as arguments).
It is an artifical type solely created for the wiki and doesn't exist in Lua.
Types
A value 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 tables inside tables are not supported.
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