On Mon, Nov 9, 2009 at 8:41 PM, liam mail <firstname.lastname@example.org> wrote:My final observation in the code is another boolean/number problem
> Duncan you are correct that in pushing the function twice they are not equal
> (checked using lua_rawequal which seems strange); yet pushing the function
> once then using push_value whilst they are raw equal as you would expect
> still does not call the function.
right at the end, when you get the result:
...this should be lua_toboolean() instead. lua_tointeger() will return
> int result = lua_tointeger(s,-1);
0 for either boolean value.