lua-users home
lua-l archive

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


On 18 October 2011 16:24, Jerome Vuarand <jerome.vuarand@gmail.com> wrote:
> To store function pointers used like that you should use
> light userdata. But that's not the issue.

If you want to store a function then use a function pointer or a
structure containing a function pointer, only use a void pointer if
you are sure a it can hold a function pointer on the platform in
question; otherwise there be dragons.

Liam