Am 15.02.10 17:46, schrieb Philipp Gröschler: >> Philipp, try to open lua from command line and enter >> >>> function foo(...) return unpack(arg) end >>> = foo(1,2,3) >> >> Do you see >> >> 1 2 3 >> >> as output then? If yes, then its not a lua problem. > > No, in fact I see this: >> Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio >>> function foo(...) return unpack(arg) end >>> = foo(1,2,3) >> stdin:1: bad argument #1 to 'unpack' (table expected, got nil) >> stack traceback: >> [C]: in function 'unpack' >> stdin:1: in function <stdin:1> >> (tail call): ? >> [C]: ? > > I guess we have some clue now :-)
I talked with the guys on #lua and they told me that `arg` is deprecated in favour of `...` and that `arg` does no longer works if Lua is compiled without compatibility. So I'll go through our code and replace the occurrences of `arg` accordingly. Thanks for your patience, Thomas. -- GPG-Key 0x160D1092 | tommyd3...@jabber.ccc.de | http://thomaskeller.biz Please note that according to the EU law on data retention, information on every electronic information exchange might be retained for a period of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel