|
Looks nice but… > do >> v = require('valua') >> t = v:new().type("table").empty() >> print(t({})) >> end ...Files (x86)\LuaRocks\systree\share\lua\5.1\valua.lua:77: bad argument #1 to 'len' (string expected, got table) stack traceback: [C]: in function 'len' ...Files (x86)\LuaRocks\systree\share\lua\5.1\valua.lua:77: in function 'empty' ...Files (x86)\LuaRocks\systree\share\lua\5.1\valua.lua:83: in function <...Files (x86)\LuaRocks\systree\share\l ua\5.1\valua.lua:82> (tail call): ? ...Files (x86)\LuaRocks\systree\share\lua\5.1\valua.lua:50: in function 't' stdin:4: in main chunk [C]: ? > From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org]
On Behalf Of Etiene Dalcol Hello, everyone! local test = valua:new().integer().min(18) test(5) -- false test(19) -- true |