[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua5(beta) luaL_openlib
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 19 Dec 2002 17:59:52 -0200
>luaL_openlib seems to leave one item to the stack (the table
>containing the library), and functions like lua_baselibopen,
>lua_mathlibopen and lua_tablibopen leave the table
This is an oversight. lua_*libopen should return 1, not 0.
>The 5(alpha) did completely regenerate the table of the library
>in loadlib, but 5(beta) reuses the table, and just
>adds items to it. In some sense I find the alpha behaviour
This is to allow things like opening a library directly into the global table
or or library appending things to another (eg. system-dependent functions
to the "os" library).