lua-users home
lua-l archive

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


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