[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.3 work1 Considering math.isinteger or type()
- From: Rena <hyperhacker@...>
- Date: Tue, 23 Jul 2013 06:32:40 -0400
On Jul 22, 2013 9:59 PM, "Miles Bader" <miles@gnu.org> 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.