lua-users home
lua-l archive

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


I need to be able to provide a default metatable for tables created during execution of a script.

I was considering modifying OP_NEWTABLE to set the metatable, but I noticed there is a _defaultmeta in the lua_State. Is there a way I can use this to acheive what I want? If so, how do I set it...

Thanks!

Love, Light and Peace,
- Peter Loveday