From c10ee230c83a5dfcda077652c2b16bc8f8a9d221 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Mon, 10 May 2010 21:19:21 +0300 Subject: Sync with ConTeXt stable (stable 2010.05.08) No functions removed, few new additions. --- lualibs-os.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lualibs-os.lua') 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) -- cgit v1.2.3