You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From Lua 5.2.0 up to Lua 5.4.8, the presence of several deprecated functions in the mathematical library are controlled by a few macros, turned on by default (via CFLAGS) in the released src/Makefile:
Lua 5.2: the macro LUA_COMPAT_ALL is turned on by default by
However, on Lua 5.5, even though the macro LUA_COMPAT_MATH is able to keep such deprecated functions in the mathematical library, this macro has been turned off in both src/Makefile and src/luaconf.h:
Description
From Lua 5.2.0 up to Lua 5.4.8, the presence of several deprecated functions in the mathematical library are controlled by a few macros, turned on by default (via
CFLAGS) in the releasedsrc/Makefile:Lua 5.2: the macro
LUA_COMPAT_ALLis turned on by default byLua 5.3: the macro
LUA_COMPAT_5_2is turned on by default byLua 5.4: the macro
LUA_COMPAT_5_3is turned on by default byHowever, on Lua 5.5, even though the macro
LUA_COMPAT_MATHis able to keep such deprecated functions in the mathematical library, this macro has been turned off in bothsrc/Makefileandsrc/luaconf.h:src/Makefile:CFLAGS= -O2 -Wall -Wextra $(SYSCFLAGS) $(MYCFLAGS)src/luaconf.h: see https://github.com/lua/lua/blob/a5522f06d2679b8f18534fd6a9968f7eb539dc31/luaconf.h#L344-L352Conclusion
Even though I'm not sure whether it is the role of
lua-compat53to backport such functions as a compatibility layer, but since these functions are turned on a standard Lua 5.2 - Lua 5.4 build, I think such funcs could be easily provided bylua-compat53to keep compatibility athttps://github.com/lunarmodules/lua-compat-5.3/blob/9c6f75a88db1462ff655dc006588b25d3bc2a5be/compat53/module.lua
Note
I could try to help with a PR if there's interest.