lua-users home
lua-l archive

Possible to add methods in Lua to metatables defined in C?

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


Bear with me if I'm misunderstanding something.  

I have written a lua library in C, and am using metatables for methods.  What I would like to do is add additional methods to those metatables from Lua.  The issue seems to be that I can't access the handle for the metatable, and even if I could, it's not clear that I would be able to add a function to the table.  Am I barking up the wrong tree here?  or am I missing something obvious?

Best regards,
-Andrew

AltStyle によって変換されたページ (->オリジナル) /