lua-users home
lua-l archive

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


Why does  Lua allow some but not all of these?

function foo(…) end

foo ‘hello’ — ok
foo {}  — ok
foo 5  — not ok
foo nil  — not ok

Would be nice if we could allow all of them.
David