lua-users home
lua-l archive

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

> The documentation relating to lua_arith seems incorrect with regard to
> LUA_OPUNM. The code in lapi.c appears to create the second argument,
> and thus does not require a dummy nil.

It was corrected but not fully corrected:

  Performs an arithmetic operation over the two values
  (or one, in the case of negation)

  When the operation is @id{LUA_OPUNM},
  the caller must push a @nil value for the second operand.

Thanks for the feedback.

-- Roberto