diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2017-09-19 20:10:06 +0200 |
---|---|---|
committer | Francois Perrad <francois.perrad@gadz.org> | 2017-09-21 18:27:21 +0200 |
commit | 5ca1278184207cbd231b958b30ba2cc31d05ac5c (patch) | |
tree | 6e6fb60e826c10a95c3239c6e78d93ab3a109f0d /valua.lua | |
parent | f688b9025ea113eecfd5967a8d611b51f037c297 (diff) | |
download | valua-5ca1278184207cbd231b958b30ba2cc31d05ac5c.tar.gz valua-5ca1278184207cbd231b958b30ba2cc31d05ac5c.tar.bz2 valua-5ca1278184207cbd231b958b30ba2cc31d05ac5c.zip |
enforce the no use of global
Diffstat (limited to 'valua.lua')
-rw-r--r-- | valua.lua | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |