From f9c2fcacb29f72ff5f449f501fbebeec5943d764 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 11 Oct 2010 16:55:56 +0200 Subject: [PATCH] awful.util.join: Stop using arg Implementing vararg functions via arg is deprecated in lua. This kind of thing should instead be done via "...". Signed-off-by: Uli Schlachter --- lib/awful/util.lua.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/awful/util.lua.in b/lib/awful/util.lua.in index a871c82a..88de39fb 100644 --- a/lib/awful/util.lua.in +++ b/lib/awful/util.lua.in @@ -237,9 +237,9 @@ end -- @return A new table containing all keys from the arguments. function table.join(...) local ret = {} - for i = 1, arg.n do - if arg[i] then - for k, v in pairs(arg[i]) do + for i, t in ipairs({...}) do + if t then + for k, v in pairs(t) do if type(k) == "number" then rtable.insert(ret, v) else