Hi all,
I've just updated to 3.3-rc3. But it doesn't work for me, not even with
the default config file. The errors occur in functions in the awesome
lua libs that have the form
function foo (a, b, ...)
doStuff()
arg[0] -- Access arg
end
Here are examples for those errors:
- /usr/share/awesome/lib/awful/button.lua:39 bad argument #1 to
'unpack' (table expected, got nil)
- /usr/share/awesome/lib/awful/titlebar.lua:233: attempt to get length
of global 'arg' (a nil value)
Both errors occur when a variable `arg' is accessed. It looks like the
intention is to access the values of the function parameter `...'.
Somehow my lua version (5.1.4) does not seem to understand this syntax.
Ah, now I've looked that up in the lua spec. In 5.0 `arg' is used to
access varargs, but in 5.1 `...' is used instead. Because awesome uses
so many bleeding edge libs anyway, I'd say that one could switch to
using lua 5.1 syntax...
Bye,
Tassilo
--
To unsubscribe, send mail to [email protected].