summaryrefslogtreecommitdiff
path: root/lualibs-os.lua
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2010-05-15 15:33:07 +0300
committerElie Roux <elie.roux@telecom-bretagne.eu>2010-05-15 15:33:07 +0300
commit2ede45796e70760267e4928dfff04d3546a8f159 (patch)
tree757db11408d39a2f2b6aab070dcae5047898d065 /lualibs-os.lua
parent77afbb2c3bf74a992579c9b87338e74dbc5dda82 (diff)
parentc10ee230c83a5dfcda077652c2b16bc8f8a9d221 (diff)
downloadlualibs-2ede45796e70760267e4928dfff04d3546a8f159.tar.gz
Merge branch 'master' of github.com:mpg/lualibsv0.93
Diffstat (limited to 'lualibs-os.lua')
-rw-r--r--lualibs-os.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lualibs-os.lua b/lualibs-os.lua
index 4f0c0c1..fba2cd3 100644
--- a/lualibs-os.lua
+++ b/lualibs-os.lua
@@ -87,12 +87,13 @@ end
--~ print(os.date("%H:%M:%S",os.time()))
-- no need for function anymore as we have more clever code and helpers now
+-- this metatable trickery might as well disappear
os.resolvers = os.resolvers or { }
local resolvers = os.resolvers
-local osmt = getmetatable(os) or { __index = function(t,k) t[k] = "unset" return "unset" end }
+local osmt = getmetatable(os) or { __index = function(t,k) t[k] = "unset" return "unset" end } -- maybe nil
local osix = osmt.__index
osmt.__index = function(t,k)