Difference between revisions of "Variant"

m
m (Bartbes moved page value to Variant: This page really describes love's Variant type)
(No difference)

Revision as of 11:03, 31 January 2017

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 nested tables are not supported.

Other Languages