[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luajit2 head and Lanes 2.07, very strange!
- From: Mike Pall <mikelu-1011@...>
- Date: Tue, 30 Nov 2010 16:28:13 +0100
zhiguo zhao wrote:
> But why I lua_getglobal(L,"_G") failed (I don't test this under lua5.1.4,
> but i think it works).
First, "_G" is a table, not a string. So lua_tostring() cannot
possibly work on it. Second, lua_typename(L, tp) expects a type
number and not a stack index. Any results you may get from that
broken C code are undefined.
Please read the documentation of the Lua/C API in the Lua manual,
if you're not familiar with its use.
--Mike
- References:
- luajit2 head and Lanes 2.07, very strange!, zhiguo zhao
- Re: luajit2 head and Lanes 2.07, very strange!, Mike Pall
- Re: luajit2 head and Lanes 2.07, very strange!, zhiguo zhao
- Re: luajit2 head and Lanes 2.07, very strange!, Mike Pall
- Re: luajit2 head and Lanes 2.07, very strange!, zhiguo zhao