[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Online PiL 1st Ed. Errata
- From: "Stuart P. Bentley" <stuart@...>
- Date: Thu, 27 Jan 2011 06:21:30 -0800
?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().