lua-users home
lua-l archive

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


> The logical operators do not seem to interact as I expect
> with argument adjustment:

Logical operators, like all operators, adjust their operands to 1 value before
performing any operation. In fact, the only places you can use a function call
and get all its returned values is in an assignment:

 a,...,b = f()

or in a return statement:

  return f()

Any other use of a function call will adjust its results.

-- Roberto