lua-users home
lua-l archive

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


>I'm currently storing the pointer to the C struct as the only element
>in the table.

If you're storing everything in C, you don't need to create a proxy Lua table:
just export the C struct as userdata to Lua and set __index and __newindex
metamethods for it.
--lhf