[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Global Table Customization
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 6 Aug 2001 22:46:43 -0300
>I personally would like to search other tables if a global cannot be found
>before returning nil.
How about this?
settagmethod(tag(nil),"getglobal",function (name)
return T1[name] or T2[name] or T3[name]
end)
This searches "name" in tables T1, T2, T3 before returning nil.
(Just make sure that T1, T2, T3 are defined or you'll get loops.)
--lhf