[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Bug report] unpack()ing multiple tables does not behave asexpected
- From: "Alex Davies" <alex.mania@...>
- Date: Fri, 16 May 2008 14:48:05 +0800
It may seem strange at first, but the benefits are large. There's the
performance aspect, but more importantly you can use function calls inside a
parameter list to another function and not worry that'll it return a bunch
of values clobering yours. The last argument is allowed to overflow -
there's a reason you don't see a bunch of { if (lua_gettop(L) > 3)
luaL_error(L, "too many arguments!") } in the lua libraries. :)
- Alex
From: "ddneilson" <ddneilson@gmail.com>
Hm, so it is. It's such an odd behaviour (read: counter intuitive to me)
that I honestly didn't think for a second that it was actually
intentional! <shrug>