lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

The fast and simple way of doing this is illustrated nicely by lhf:
I've also put another example on the wiki:

- Peter

On Friday 26 April 2002 15:48, Richard van Zon wrote:
> Hi,
> 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,