lua-users home
lua-l archive

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

Luiz Henrique de Figueiredo <> wrote:
> >From: Stephen Dekorte <>
> >
> >Is anyone considering adding a way to modify the (lua) stack 
> >from within Lua?
> Why would you want to do this?

There's a bunch of potential uses: implementing exceptions and threads 
from within Lua. The ability of storing the stack state at a moment in time 
and then starting it up later would also be usefull for some applications. 
Wouldn't it be nice to be able to send a lua program across a network 
while it was in the middle of executing?

This assumes your only using lua to call into C and come right back out
without calls back into lua - since that involve the C stack. This is
the case for my application.