[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1+ and variable-argument tables
- From: Asko Kauppi <asko.kauppi@...>
- Date: Fri, 20 Aug 2004 21:50:47 +0300
I was starting to think of this (implementing tuples in LuaX) and was
mentally browsing through cases where function/tuple should be
differentiated.
But it will be possible to test:
if v==tuple then -- if our value is the one and only function (don't
care of the upvalues)
and not only:
if type(v)=="function" then -- since there won't be a type "tuple"
Am I getting it right? :)
20.8.2004 kello 21:13, Mark Hamburg kirjoitti:
At the same time, I wouldn't expect these to work on
arbitrary function closures.