Learning Lua: 7 - userdata 1. Userdata basic "There are eight basic types in Lua: nil, boolean, number, string, userdata, function, thread, and table. The type() function gives the type name of any given value. " Ref[1] "The userdata type a…
dynamically typed vars: basic types: nil, boolean, number, string, function, userdata, thread & table. where nil has only one value, is mainly to differ from other types. absense of useful info bool: false & true. so false & nil are both make…
Lua 是什么? Lua 是一种轻量小巧的脚本语言,用标准C语言编写并以源代码形式开放, 其设计目的是为了嵌入应用程序中,从而为应用程序提供灵活的扩展和定制功能. Lua 是巴西里约热内卢天主教大学(Pontifical Catholic University of Rio de Janeiro)里的一个研究小组,由Roberto Ierusalimschy.Waldemar Celes 和 Luiz Henrique de Figueiredo所组成并于1993年开发. 设计目的 其设计目的是…