[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: package system
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 23 Aug 2002 09:01:02 -0300
> 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