[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Manipulating the stack
- From: Steve Dekorte <steve@...>
- Date: Tue, 23 May 2000 17:28:40 -0700
Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> >From: Stephen Dekorte <steve@egroups.net>
> >
> >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.
Steve