[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: modules, require, magic
- From: Julien Duminil <julien.duminil@...>
- Date: Tue, 18 Oct 2011 11:05:07 +0200
> A question: Two modules use Penlight, foo and bar. If I include foo
> and
> bar into a project, does that mean I have two instances of Penlight
> loaded?
require stores "modules" that have already been required in package.loaded[modname] so that if you load the same module twice, it loads it only once:
http://www.lua.org/manual/5.1/manual.html#pdf-require
- References:
- modules, require, magic, Eduardo Ochs
- Re: modules, require, magic, Javier Guerra Giraldez
- Re: modules, require, magic, Petite Abeille
- Re: modules, require, magic, Sam Roberts
- Re: modules, require, magic, David Manura
- Re: modules, require, magic, Mark Hamburg
- Re: modules, require, magic, Sean Conner
- Re: modules, require, magic, Josh Simmons
- Re: modules, require, magic, Josh Simmons
- Re: modules, require, magic, steve donovan
- Re: modules, require, magic, Sean Conner