lua-users home
lua-l archive

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


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