[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: "noreturn" attribute in lua_error & Co
- From: liam mail <liam.list@...>
- Date: Wed, 18 Apr 2012 13:56:27 +0100
On 18 April 2012 13:47, Patrick Rapin <toupie300@gmail.com> wrote:
> My first question is: why don't public API functions also use that attribute ?
> Those external functions could be declared as 'noreturn':
>
> LUA_API int (lua_error) (lua_State *L);
> LUALIB_API int (luaL_argerror) (lua_State *L, int numarg, const char *extramsg);
> LUALIB_API int (luaL_error) (lua_State *L, const char *fmt, ...);
Maybe because that would break the ABI which granted is only backwards
compatible with minor versions, but this would require rewriting a lot
of code that uses 5.1.* for next to no benefit.
Liam