Lua 5.3: should LUA_COMPAT_5_1 define LUA_COMPAT_5_2?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Lua 5.3: should LUA_COMPAT_5_1 define LUA_COMPAT_5_2?

Reuben Thomas-5
For example, I get the somewhat surprising result that when compiling with -DLUA_COMPAT_5_1 but not -DLUA_COMPAT_5_2, I don't get the macros defined by LUA_COMPAT_APIINTCASTS, although they were available in 5.1.

--
Reply | Threaded
Open this post in threaded view
|

Re: Lua 5.3: should LUA_COMPAT_5_1 define LUA_COMPAT_5_2?

Roberto Ierusalimschy
> For example, I get the somewhat surprising result that when compiling with
> -DLUA_COMPAT_5_1 but not -DLUA_COMPAT_5_2, I don't get the macros defined
> by LUA_COMPAT_APIINTCASTS, although they were available in 5.1.

(Please, do not assume in the text that we still remember the subject...)


> Subject: Re: Lua 5.3: should LUA_COMPAT_5_1 define LUA_COMPAT_5_2?

Some things in LUA_COMPAT_5_2 were not present in 5_1 (e.g., bit32,
__ipairs metamethod). Maybe we should add explicitly in LUA_COMPAT_5_1
the needed options (LUA_COMPAT_MATHLIB and LUA_COMPAT_APIINTCASTS)?

-- Roberto