lua-users home
lua-l archive

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


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?

---
Albert-Jan