lua-users home
lua-l archive

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

> Oops, I meant to say:
>   object:methodA():methodB()

The syntax for function calls is   <varexp>:name(<params>), where <varexp> is
a simple name, or <varexp>.name or <varexp>[exp]. Unfortunately, it is not
possible to write a generic expression as the function to be called. We have
tried to change that, but we've always got parsing problems. So, the solution
is to use a local temporary variable, as you did.

-- Roberto