[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: RES: Userdata
- From: Mike Pall <mikelu-0411@...>
- Date: Sun, 21 Nov 2004 21:09:25 +0100
Hi,
André de Leiradella wrote:
> Now it's easy to see why I need a pointer to the Lua state inside my
> userdata.
And this is precisely the reason why any well designed API should provide
a void * pointer to a private data structure that is passed on to callbacks.
I suggest you ask the authors of the library to add such a pointer
to the rfbClient structure. There are private data pointers in other
structures, so they certainly know about the issue.
Bye,
Mike