lua-users home
lua-l archive

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


Hi!
	I had thought the following will work::
	
	lua_State *L=lua_open();
	int error = luaL_dostring(L,"return 10");
	printf("%d\n",lua_tonumber(L,-1));

	--output	
	0

	not 10.  What can I do then?

mos