[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Could do with some guidance on Lua interfacing please
- From: Duncan Cross <duncan.cross@...>
- Date: Sun, 31 Jan 2016 14:25:31 +0000
On Sun, Jan 31, 2016 at 1:05 PM, Geoff Smith <firstname.lastname@example.org> wrote:
> The obvious thing I dont like about that is the horrible syntax, I want to
> be able to call something like frm1.show() in Lua.
> How would I go about rejigging that syntax construct ?
In Lua syntax, the way to call an instance method is
objectname:methodname(...) with a colon instead of a dot. (This is
general advice, rather than specific to LuaInterface.)