lua-users home
lua-l archive

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


July 13, 2017 3:16 PM, "Luiz Henrique de Figueiredo" <lhf@tecgraf.puc-rio.br> wrote:

>> There are exactly zero other scenarios in Lua where f(nil) produces different
>> behavior than f().
> 
> Try assert(), getmetatable(), ipairs(), pcall(), tonumber(), tostring(), type().

And of course:

    > select('#', nil, nil, nil)
    3

It's a feature, not a bug.

-- 
Pierre Chapuis