[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [PATCH] setmetatable({}) causes error
- From: "Pierre Chapuis" <catwell@...>
- Date: Thu, 13 Jul 2017 14:44:27 +0000
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