[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Is there any method or funtion that could danamically resize the size of Lua's stack?
- From: 孙世龙 sunshilong <sunshilong369@...>
- Date: Sat, 10 Oct 2020 16:09:54 +0800
Hi, list
As per the book named as 《Programming in Lua》,which said that[emphasise mine]:
A nice idiom is {string.byte(s, 1, -1)}, which creates a list with the
codes of all characters in s. (This idiom only works for strings somewhat
shorter than 1 MB. **Lua limits its stack size**, which in turn limits the
maximum number of returns from a function. The default stack limit is
one million entries.
Then, a question raises.
Is there any method or funtion that could danamically resize the size
of Lua's stack?
Best regards
Sunshilong