|
But I admit that providing properties *and* methods for a userdata feels a bit clumsy. I usually set an index metamethod with the method table as an upvalue, and check the method table first and then look for properties in the userdata. Maybe we could add an API function to lauxlib to help doing something like this ...