lua-users home
lua-l archive

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


On 9/6/07, Daniel Collins <dcplus@bigpond.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
> "Reloaded"
> > my main script, that includes the modules, using require().
>
> I think you need to unrequire the modules. See
>       http://lua-users.org/lists/lua-l/2006-06/msg00071.html
>       http://lua-users.org/lists/lua-l/2006-07/msg00350.html

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:

function unrequire(m)
        package.loaded[m] = nil
        _G[m] = nil
end

What about a 'C' api way of doing this?
--
Regards,
Ryan
RJP Computing