[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Eval a Lua expression
- From: "Javier Guerra" <javier@...>
- Date: Wed, 2 Apr 2008 16:27:22 -0500
On Wed, Apr 2, 2008 at 4:12 PM, Eugen-Andrei Gavriloaie
> So, on the second lua_evaluate_expression call from C++ I will have a value
> of 2 instead of the string 'mysql' pushed on the stack because the entire
> script execution stops at the first return. Am I right?
no, each call to lua_evaluate_expression() would compile and execute a
new script in the same context. it won't 'accumulate' a long script.