From 8c8a91f2ef7acccb99e3737913faad8d48b39571 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 24 Aug 2018 10:17:54 -0300 Subject: Deprecated the emulation of '__le' using '__lt' As hinted in the manual for Lua 5.3, the emulation of the metamethod for '__le' using '__le' has been deprecated. It is slow, complicates the logic, and it is easy to avoid this emulation by defining a proper '__le' function. Moreover, often this emulation was used wrongly, with a programmer assuming that an order is total when it is not (e.g., NaN in floating-point numbers). --- ltests.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ltests.h') diff --git a/ltests.h b/ltests.h index 54bc4f5f..d44974a4 100644 --- a/ltests.h +++ b/ltests.h @@ -13,6 +13,7 @@ /* test Lua with compatibility code */ #define LUA_COMPAT_MATHLIB +#define LUA_COMPAT_LT_LE #define LUA_DEBUG -- cgit v1.2.1