[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua C Functions in C++ class
- From: "Jason Murdick" <osiris@...>
- Date: Tue, 21 Oct 2003 15:37:10 -0700
Discusses upvalues and their use.
----- Original Message -----
From: "Tim Conkling" <email@example.com>
To: "Lua list" <firstname.lastname@example.org>
Sent: Tuesday, October 21, 2003 3:51 PM
Subject: Re: Lua C Functions in C++ class
> One more quick question -- do I need to do anything with upvalues
> before returning from the function call, or are they automatically
> popped off the stack by Lua?
> On Oct 21, 2003, at 5:50 PM, Tim Conkling wrote:
> > Thanks a lot to everyone who replied. Userdata upvalues are exactly
> > what I need.
> > Tim
> > On Oct 21, 2003, at 2:57 PM, Luiz Henrique de Figueiredo wrote:
> >>> there's no way to associate any sort of user data with the exported
> >>> functions
> >> Sure there is. You export C closures, not C functions, in fact. So C
> >> function
> >> can have upvalues.
> >> --lhf