[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] mergelua
- From: Sebastien Lai <237482@...>
- Date: Sun, 16 Oct 2011 14:20:54 +0200
On Sun, Oct 16, 2011 at 3:40 AM, David Manura <firstname.lastname@example.org> wrote:
> I believe it's preferred to utilize package.preload rather than
> override require.
I've been trying to insert package.preloade[<modulename>] = <etc> in
different ways, but it did not quite work for me.
So far my version with require(), which is only __locally__
overridden, appears to work a tiny wee bit more flawless than you
Anyway, I did remove my require() hook, and instead, inserted the
modules directly into `package.loaded`. It'll still honor the local
namespace, though. Who could possibly know why package.preload doesn't