[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Interact with table variables
- From: Peter Shook <pshook@...>
- Date: Sat, 27 Apr 2002 13:31:11 -0400
The fast and simple way of doing this is illustrated nicely by lhf:
I've also put another example on the wiki:
On Friday 26 April 2002 15:48, Richard van Zon wrote:
> Based on Peter Shooks example, I am creating a library to register my
> C++ classes.
> Functions work, but I am not able to find a way to access variable members
> of the LUA - class, like "clss.x = 10" in the example below.
> I also tried to create a index - event like the "gettable"-code below
> and pushing x
> as a number. This works. But there is no trigger when x is changed or
> read then.
> Can anyone help me with what code I could add to interact with x ?
> Many thanks,