lua-users home
lua-l archive

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


On Wed, Jun 25, 2014 at 1:25 AM, Pierre-Yves Gérardy <pygy79@gmail.com> wrote:
> On Wed, Jun 25, 2014 at 12:49 AM, Thiago L. <fakedme@gmail.com> 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:

https://gist.github.com/pygy/7d7d0209767a2d1c593a

Thanks for the feedback Thiago!

—Pierre-Yves