[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Case insensitive global
- From: "kaishaku13" <kaishaku13@...>
- Date: Thu, 14 Mar 2002 17:41:38 -0000
I'm sorry, I meant lua_settagmethod in C.
I still don't know what that should look like in C
with lua_settagmethod, how do I get or assign to
the nil/default/global lua tag...
--- In lua-l@y..., Luiz Henrique de Figueiredo <lhf@t...> wrote:
> >Ok, so what does the settagmethod on the global/default tag look
like?
>
> settagmethod(tag(nil),"getglobal",
> function (x)
> local y=strlower(x)
> if x==y then return nil else return getglobal(y) end
> end)
>
> PRINT(PRINT)
>
> --lhf