|
Hi, Am 22.12.2010 18:19, schrieb Romulo:
On Wed, Dec 22, 2010 at 15:14, Ronald Lamprecht<R.Lamprecht@t-online.de> wrote:The most perfect solution would be if v:name(...) would be syntactic sugar vor v.name(v, name, ...). But I guess this would cause major trouble and incompatibilities.Could you use: local v = myobj local name = 'mymethod' v[ name ]( v, ... ) ?
No, we have no control of the users usage of methods. Any legal Lua code should work without restriction to code conventions.
Greets, Ronald