lua-users home
lua-l archive

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


On Fri, Apr 07, 2006 at 03:51:26PM -0300, Luiz Henrique de Figueiredo wrote:
> > I would like to be able to do in C:
> > 
> >   Lua_EvalString(lua, "two()");
> > 
> > and then see 2 on the top of the lua stack.
> 
> Try
>    Lua_EvalString(lua, "return two()");

Thanks, I'm so used to every expression resulting in a value, that never
occurred to me, works wonderfully.

Sam