Module:Sandbox/Ahecht: Difference between revisions

Content deleted Content added
dots
rewrite
Line 58:
end
 
function error(tframe, key)
t[key] = function () return "Error! Missing function " .. key end
return t[key]
end
 
Line 71 ⟶ 70:
end
 
return setmetatable(p, {__index =
function(_, key) -- this anonymous function called as function(TABLE, KEY)
return function (frame) return error (frame, key) end; -- which in turn returns a function that calls cite() with the KEY name
end
})