[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: `require()` semantics?
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Wed, 25 Jun 2014 01:53:51 +0200
On Wed, Jun 25, 2014 at 1:25 AM, Pierre-Yves Gérardy <email@example.com> wrote:
> On Wed, Jun 25, 2014 at 12:49 AM, Thiago L. <firstname.lastname@example.org> wrote:
>> Wait loaders can't be metatabled/__callable objects?
> They can.
> Looking at the 5.1 source, I see that there's also a sentinel used to
> reject cycles.
> Lua 5.2 is oblivious to require cycles, and will loop until the stack
> overflows (too many C levels).
Now as a gist, taking the points above into account:
Thanks for the feedback Thiago!