[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: list table methods
- From: Rob Kendrick <rjek@...>
- Date: Fri, 16 Aug 2013 09:36:25 +0100
On Thu, Aug 15, 2013 at 07:24:43PM -0700, Sergey Zavadski wrote:
> I want to list in the runtime methods that particular table contains. Is it possible to do in lua?
Tables don't have methods, they just have functions stored in them by
name. That being the case, just use pairs() to iterate it and check the
assoicated value using type() to see if it's a function.
B.