[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Commit error (Possible LUA problem)
From: |
Thomas Keller |
Subject: |
Re: [Monotone-devel] Commit error (Possible LUA problem) |
Date: |
Mon, 15 Feb 2010 22:36:29 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; de; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b2pre Thunderbird/3.0.1 |
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 | address@hidden | 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