lua-users home
lua-l archive

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


On Fri, Aug 31, 2018 at 7:29 PM, Alejandro Reimondo wrote:
Is it possible to send messages to functions?
I need to extend functions as first-class objects.
With string values the feature is implemented
extending string's metatables.
I coudn´t found a similar way to do it with
 function values.


What does "send messages to functions" mean?

The "__call" metamethod is not applicable to closures, but others ("__pow", "__div", "__index",...) are still available.