NLua icon indicating copy to clipboard operation
NLua copied to clipboard

[Feature request] Dot syntax for calling methods

Open lofcz opened this issue 3 years ago • 1 comments

I'm looking to switch from Moonsharp to NLua due to perf reasons. One thing that is blocking for me is that NLua currently does not support calling non-static methods with dot:

valid in Moonsharp:

myobj.mymethod();

NLua:

myobj:mymethod();

do you think it would be possible to add this, possibly behind a feature flag?

lofcz avatar May 16 '21 02:05 lofcz

Wouldn't be possible to do a find an replace ? That would be a breaking change

viniciusjarina avatar May 16 '21 06:05 viniciusjarina