lua-users home
lua-l archive

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

Hi Krish,
I'm still exploring the possibilities of this technique as well.
Here an extended version of Jerome's example that can be directly executed:

local m = {}
setmetatable(m, {__index=function(t,funcname)
   return function(...)
})'get this','and','that')
m:baz('as method call...')

I hope this helps a bit.

2007/10/1, Lythoner LY <>:

I couldn't get anything so far with your example :-(. FuncTables looks like advanced concepts which I haven't encounter before. Anyway thanks for link and I will try my best to learn, try the solution and post my experience back. If anybody have some direct hint/example, it would help me (newbie).