[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Re: Lua 4 closures
- From: "D Burgess" <db@...>
- Date: Sun, 27 Apr 2003 23:44:39 +1000
In Lua 4 ?
+++++++++++++++++++++++++++++++++
>>Is it possible in Lua4 (or 5) to establish the value of a
>>function closure?
>>e.g.
>>
>> lua_CFunction fnc;
>> lua_getglobal(L,"write");
>> fnc=lua_tocfunction(L,-1); /* gives the function pointer */
>> /* love to know what its closure values are */
>
>Try lua_pushupvalues in Lua 5.0.
>--lhf