commit | 8c8a91f2ef7acccb99e3737913faad8d48b39571 | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Fri Aug 24 10:17:54 2018 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Fri Aug 24 10:17:54 2018 -0300 |
tree | 0807151944b7f7fd00eedfcfe94b4ee26fe25b21 | |
parent | f99509581ee73c1c2dbddb3398e87c098771d31f [diff] |
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).