lua-users home
lua-l archive

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

On Jul 22, 2013 9:59 PM, "Miles Bader" <> wrote:
> p.s. I _also_ think that a similar model (isfunction(), istable(),
> etc) would be better for general Lua type inquiries than type(); see
> various long past threads on this mailing list... :]
I'd long wished for isindexable() and iscallable(), so that tables, functions, and userdata with the appropriate metamethods can be interchanged. Right now even if I have __call and __index on a userdata, many libraries won't accept it because they check the type explicitly.