[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Online PiL 1st Ed. Errata
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 27 Jan 2011 13:25:57 -0200
> ?Before the 5.0 oriented code on http://www.lua.org/pil/24.1.html, it notes
> that "WARNING: this code is for Lua 5.0. To run it in Lua 5.1, you must
> change the five calls luaopen_*(L) to a single call to luaL_openlibs(L)."
> However, it neglects to mention that also in 5.1 lua_open() should be
> changed to luaL_newstate().
In 5.1, lua.h contains this definition for compatibility:
#define lua_open() luaL_newstate()