The methods will have to be looked up in the table anyways. In Lua
4.1-work3, you can create a table with all the methods and set it as the
index field of the eventtable. The call
userdatum:method(...)
will be translated to
userdatum.method(userdatum, ...)
The dot will see its a userdatum and check the eventtable for the userdatum
and return the field 'method' of the index table.
This could be your C function that does whatever it wants with the pointer
it receives.
Even if you don't have eventtables, the method table could be passed as a
closure parameter to the userdatum index tag method.
I don't see how this is too bad. Maybe you need the references outside of C
functions called by lua methods.
Regards,
Diego.