[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: C stack usage
- From: Albert-Jan Brouwer <acj.brouwer@...>
- Date: Mon, 03 Nov 2003 15:43:10 +0100
Luiz Henrique de Figueiredo wrote,
> (...) if your script does not call any C functions, then no C stack is
> consumed (...). Note, however, that if you use tag methods,
> then you do use C stack, even if your tag methods are written in Lua.
It would be most helpful if, in some future Lua version, as much of the
C functionality that calls back into Lua (meta methods, pcall, sort,
foreach, etc.) were implemented in a manner that does not consume
C stack. This would allow functionality that depends on yielding to be
used from whithin such functions. Are there any such plans?