From 1e0ad018cef2a8e771787f126ce2150028749411 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 10 Dec 2019 13:50:20 -0300 Subject: Comment about LUA_COMPAT_LT_LE moved to proper place --- ltm.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ltm.c') diff --git a/ltm.c b/ltm.c index 1e32d86a..ca46f04e 100644 --- a/ltm.c +++ b/ltm.c @@ -188,6 +188,15 @@ void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2, } +/* +** Calls an order tag method. +** For lessequal, LUA_COMPAT_LT_LE keeps compatibility with old +** behavior: if there is no '__le', try '__lt', based on l <= r iff +** !(r < l) (assuming a total order). If the metamethod yields during +** this substitution, the continuation has to know about it (to negate +** the result of rtop, event)) /* try original event */ -- cgit v1.2.1