lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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