lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Jun 5, 2018 at 3:35 AM, dyngeccetor8 <dyngeccetor8@disroot.org> wrote:

> Current behavior of "and" and "or" operators is equivalent to following Lua-like functions.

The behaviour is documented in section 3.4.5, and the essential part of it is the "short-circuit evaluation; that is, the second operand is evaluated only if necessary". Your explanation is far more complicated than that and is technically incomplete and/or inconsistent anyway.

Cheers,
V.