[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: "nesting" metatables
- From: Jonathan Goble <jcgoble3@...>
- Date: Thu, 24 Dec 2015 16:00:54 -0500
On Thu, Dec 24, 2015 at 3:54 PM, Egor Skriptunoff
<egor.skriptunoff@gmail.com> wrote:
> On Thu, Dec 24, 2015 at 12:29 PM, Jonathan Goble <jcgoble3@gmail.com> wrote:
>>
>> This metatable chaining could theoretically continue indefinitely.
>
> The nested metatable limit is 2000 levels for Lua 5.3 (and 100 for LuaJIT).
Hence "theoretically". :)
I figured there were recursion limits, as in practice stack overflow
become a concern. I just wasn't sure what they were.