lua-users home
lua-l archive

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


I have a question about that too. Ok, "return" will do it's job if called on the main chunk of the string, but I wanted more than
that: is there a way to redefine exit() so that instead of exiting the entire program, it returns immediately from that dostring ?

> -----Original Message-----
> From: owner-lua-l@tecgraf.puc-rio.br
> [mailto:owner-lua-l@tecgraf.puc-rio.br]On Behalf Of kaishaku13
> Sent: Sunday, May 26, 2002 4:42 PM
> To: Multiple recipients of list
> Subject: Re: return from lua_dostring?
>
>
> Pfft, sorry, it's just 'return'...
>
> --- In lua-l@y..., "kaishaku13" <kaishaku13@h...> wrote:
> > How can I end an execution of lua_dostring
> > from inside the lua string being evaluated?
> >
> > exit is not what I want...
> > I just want to 'return' to my host application.
>