lua-users home
lua-l archive

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


I am wondering why

int luaL_newmetatable (lua_State *L, const char *tname){...}

No longer stores in the registry a pointer to the name of the metatable? That is, why this code has been deleted from the last 3 lines of the function?

 lua_pushvalue(L, -1);
 lua_pushstring(L, tname);
 lua_rawset(L, LUA_REGISTRYINDEX);  /* registry[metatable] = name */

Is there a different way of getting the name of the table given the table?

Cheers and keep up the awesome work.


Luiz Henrique de Figueiredo wrote:

Lua 5.1 (alpha) is now available for testing at
       http://www.lua.org/work/lua-5.1-alpha.tar.gz

The tarball includes an updated reference manual. Please take a look.
As usual, please send us your comments or post them here.

If everything goes well, we should release Lua 5.1 final by the end of
the year.

Enjoy.
--lhf



--
// David Morris-Oliveros
// Camera & Lua Coder
// Team Bondi


------------------------------------------------------------------------
Contact:
Team Bondi Pty Ltd
Level 2, 608 Harris Street
Ultimo, NSW 2007
Australia
Tel: +61 (0)2 8218 1500
Fax: +61 (0)2 8218 1507
Web: http://www.teambondi.com
------------------------------------------------------------------------
This email may contain confidential information.  If you are not
the intended recipient, you may not copy or deliver this message to
anyone. In such case, you should destroy this message and kindly
notify the sender by reply email. Opinions, conclusions and other
information in this message that do not relate to the official business
of our firm shall be understood as neither given nor endorsed by it.
------------------------------------------------------------------------