From 5ca1278184207cbd231b958b30ba2cc31d05ac5c Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Tue, 19 Sep 2017 20:10:06 +0200 Subject: enforce the no use of global --- valua.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'valua.lua') diff --git a/valua.lua b/valua.lua index 4de673b..cf5a536 100644 --- a/valua.lua +++ b/valua.lua @@ -19,13 +19,15 @@ -- reusable_validation("test!") -- true -- -local valua = {} - local tinsert,setmetatable,len,match,tonumber = table.insert,setmetatable,string.len,string.match,tonumber local next,type,floor,ipairs = next,type,math.floor, ipairs local unpack = unpack or table.unpack local pack = table.pack or function(...) return { n = select('#', ...), ... } end +local _ENV = nil + +local valua = {} + -- CORE -- Caution, this is confusing -- cgit v1.2.3-54-g00ecf