Any (type)

From ComputerCraft Wiki
Revision as of 17:47, 16 February 2015 by MKlegoman357 (Talk | contribs) (Created a new 'type' to indicate 'any' type in Lua)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Any is not a valid type in Lua. Here on the wiki it is used to represent a type that can hold any valid Lua type. For example, the function os.pullEvent() returns a string event and any param1, param2, ..., which means that param1, param2, ... may be of any valid Lua type (string, number, table, etc.).