lua-users home
lua-l archive

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


> On Fri, Jan 28, 2011 at 16:52, Tony Finch <dot@dotat.at> wrote:
> > On Fri, 28 Jan 2011, joao lobato wrote:
> 
> >> What about the case when wants to discover the method name at runtime:
> 
> > It may be worth allowing obj:[method](args)
> 
> I certainly miss this feature often. Is it hard to implement?

Just write obj[method](obj, args).

-- Roberto