lua-users home
lua-l archive

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


2013/8/16 Sergey Zavadski <sergeyzavadski@gmail.com>:

> I want to list in the runtime methods that particular table contains. Is it possible to do in lua?

function listfuncs(tbl)
   for k,v in pairs(tbl) do if type(v)=="function" then print(k) end end
end