lua-users home
lua-l archive

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


On Sun, Jan 31, 2016 at 1:05 PM, Geoff Smith <spammealot1@live.co.uk> 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.)

-Duncan