[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to reload a module if a code change was made
- From: "RJP Computing" <rjpcomputing@...>
- Date: Thu, 6 Sep 2007 10:07:47 -0400
On 9/6/07, Daniel Collins <email@example.com> wrote:
> > I was bebugging the changes in my script and noticed I letf some
> > unneeded code in my module functions, so I removed it and
> > my main script, that includes the modules, using require().
> I think you need to unrequire the modules. See
What a coincidence! I was just about to reply to the original post when
you posted a message of mine from last year :-)
I can add that my unrequire function was slightly different to the one
in the earlier post:
package.loaded[m] = nil
_G[m] = nil
What about a 'C' api way of doing this?