lua-users home
lua-l archive

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


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.