lua-users home
lua-l archive

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


> Just to be sure, the meta-table for the package is where you would put
> the packages cleanup function so that pack1 = nil would do the right
> thing. Is that right?

I didn't think about that. But the metatable is shared by all packages,
so it cannot contain package-specific code. But it should be easy to
add a mechanism that calls a "_cleanup" function in the package before
collecting it.

-- Roberto