[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Surprising behavior of table.insert()
- From: Hisham <hisham.hm@...>
- Date: Fri, 25 Feb 2011 17:31:54 -0300
On Fri, Feb 25, 2011 at 5:22 PM, Hisham <hisham.hm@gmail.com> wrote:
> table.insert(my_table, my_function())
>
> But I got "wrong number of arguments to 'insert'". What surprised me
> the most, however, was that while passing a nil variable is allowed,
> passing a nullary function is frowned upon:
Argh, I meant a function _returning_ no values, instead of nullary
function, of course.
-- Hisham