[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 5.2 and 5.1
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Wed, 10 Apr 2013 22:05:59 +0200
On Wed, Apr 10, 2013 at 9:42 PM, Petite Abeille
<petite.abeille@gmail.com> wrote:
> Meh… it's what most loaders do… plus, it's one of the few way to make modules concatenable (ala luac or plain cat).
>
> In other words, 'return' forces the physical representation of a module down one's throat (one file ~= one module). package.loaded liberates one from the tyranny of files. YMMV.
You can always wrap your files in a function wrapper, and add an
appropriate loader/searcher.
-- Pierre-Yves
- References:
- 5.2 and 5.1, David Burgess
- Re: 5.2 and 5.1, Matthew Wild
- Re: 5.2 and 5.1, Luiz Henrique de Figueiredo
- Re: 5.2 and 5.1, Miles Bader
- Re: 5.2 and 5.1, David Burgess
- Re: 5.2 and 5.1, Coda Highland
- Re: 5.2 and 5.1, steve donovan
- Re: 5.2 and 5.1, Joshua Jensen
- Re: 5.2 and 5.1, steve donovan
- Re: 5.2 and 5.1, Dirk Laurie
- Re: 5.2 and 5.1, steve donovan
- Re: 5.2 and 5.1, Dirk Laurie
- Re: 5.2 and 5.1, Andrew Starks
- Re: 5.2 and 5.1, steve donovan
- Re: 5.2 and 5.1, Dirk Laurie
- Re: 5.2 and 5.1, steve donovan
- Re: 5.2 and 5.1, Dirk Laurie
- Re: 5.2 and 5.1, steve donovan
- Re: 5.2 and 5.1, Dirk Laurie
- Re: 5.2 and 5.1, Petite Abeille