[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Current state of 5.1, and the PS2.
- From: Glenn Maynard <glenn@...>
- Date: Thu, 2 Nov 2006 21:39:56 -0500
On Thu, Nov 02, 2006 at 09:03:05PM -0500, Rici Lake wrote:
> Additionally, in accordance with the new module system, the luaopen_*
> function may wish to know the name it was loaded as, which should be
> provided as the first argument to the lua_call.
This isn't mentioned in 5 - Standard Libraries. Also, these functions
don't actually use it; that is, if I luaopen_table() with a parameter of
"tab", the table library is still loaded into "table", so passing "table"
along here is a bit confusing.
Anyhow, a "lua_checkfunctionenv(L)" function to throw an error if L is
not in a Lua C call could prevent "didn't call through Lua" from being a
lurking bug.
--
Glenn Maynard