lua-users home
lua-l archive

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


>I am sure this has been asked before (I couldn't find it in the archives), and 
>I know 4.0 is getting a little dated...but I have a quick question about the 
>"setglobal" tagmethod. Is there any way to set that on all tags? 
>lua_settagmethod() does not accept LUA_ANYTAG.
>
>Basically I need to check to see if a global is in a list of "read-only" 
>variables during the setglobal tag method, so I can stop the user from 
>over-writing those variables.

See 3.3 in http://lua-users.org/wiki/RetiredLuaFaq for some ideas.
--lhf