[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luaclose_mylib function (inverse of "luaopen_mylib" C function)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 24 Aug 2020 15:53:17 -0300
> Some solutions I could imagine:
> - Add some "key=lwuserdada, value=userdata with __gc metatable" to the
> library table ... tested, works ... but seems like an inelegant workaround
> and "what is this undocumented userdata in your libary"
I would suggest this approach, but adding this entry into the registry
instead of in the library.