[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: [ANN] iwi, simple Lua binding for libgeohash
- From: Thijs Schreijer <thijs@...>
- Date: Sat, 24 Aug 2013 17:50:20 +0000
>
> - use luaL_error instead of lua_pushstring+lua_error in two places:
> lua_pushstring(L, "invalid adjacent constant value");
> lua_error(L);
>
> lua_pushstring(L, "invalid measure constant value");
> lua_error(L);
>
Instead of 'lua_error(L)' I would prefer 'return lua_error(L)' in general (applies also to 'luaL_error'). Because it tells the casual code reader that execution ends there. See also [1]
Thijs
[1] http://lua-users.org/lists/lua-l/2012-04/msg00746.html