Re: 5.1 package proposal and Kepler libs
Tomas <[email protected]> Wed, 8 Dec 2004 09:06:06 -0200 (BRDT)
| Newsgroups | gmane.comp.lang.lua.luacheia |
|---|---|
| Message-ID | <[email protected]> |
=09Hi,
On Wed, 8 Dec 2004, [ISO-8859-1] Adri=E1n P=E9rez wrote:
=2E..
> I have been reading sources from Lua 5.1-work3 and it seems that
> Compat-5.1 follows its behaviour. The only difference is that the
> luaL_module in "compat-5.1.c" is called luaL_openlib in
> "src/lib/lauxlib.c" from the 5.1-work3 sources.
=09We named it luaL_module, but at compat-5.1.h there is:
#define luaL_openlib luaL_module
=09:-)
> When migrating from lua-5.0.2 + compat-5.1 we'll have to rewrite all
> calls to luaL_module to luaL_openlib ("sed" is a good friend!).
=09Therefore I think there is no need to rewrite anything.
Just add
#include "compat-5.1.h"
=09after #including "lauxlib.h". We have done this in all Kepler
libraries.
=09Now that Roberto implemented those things officially, we
might revise the code and we'll try to converge into a single
implementation. There are two main goals on Compat-5.1: the use of
a standard method for creating and loading packages, AND reduce the
work on adequating the libraries to Lua 5.1.
=09Tomas
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/