From 5d57e27a2798723d285161cbe329c2e368a17637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Garc=C3=ADa=20Cota?= Date: Wed, 4 May 2011 00:38:39 +0200 Subject: [PATCH] use metatables when needed --- cron.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron.lua b/cron.lua index 76034a7..78e7e3c 100644 --- a/cron.lua +++ b/cron.lua @@ -21,7 +21,7 @@ local function checkTimeAndCallback(time, callback) assert(isCallable(callback), "callback must be a function") end -local entries = {} +local entries = setmetatable({}, {__mode = "k"}) local function newEntry(time, callback, update, ...) local entry = {