[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Uses for monkeypatching package.loaded
- From: Sean Conner <sean@...>
- Date: Tue, 25 Nov 2014 15:18:45 -0500
It was thus said that the Great Thiago L. once stated:
>
> On 25/11/14 04:58 PM, Sean Conner wrote:
> >It was thus said that the Great Thiago L. once stated:
> >>So I noticed I can monkeypatch package.loaded with a metatable. What's
> >>this useful for?
> > It's a regular table, and you can always add a metatable to a table?
> >
> > -spc (The same way you can add a metatable to _G ... )
> >
> >
> require() respects it
And? You seem surprised for some reason. You expected package.loaded to
be special somehow? I'm not sure what you are getting at.
-spc