|
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.