lua-users home
lua-l archive

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


> > To the Lua authors, are there any plans for changes in 5.1 or later
> > to address these issues?
> 
> Currently we have no plans to change that. As pointed out,
> lua_isfunction is different from lua_iscallable. If you really want
> that, it is quite easy to define a reasonable lua_iscallable using the
> current API.
[...]

It might be a good idea to at least fix the standard library in this
respect, either completely removing the type checking from table.foreach
and others, or implementing a generic checking mechanism.

-- 
Gustavo Niemeyer
http://niemeyer.net