Given a function declaration named
::funcName returns an instance of type
KFunction, which is a subtype of
Function. I browsed through the documentation of these interfaces and did not find an
invoke method; I expected it to be part of
funcName.invoke(...) works and exists.
My best guess is that
KCallable delegates the call to
invoke of an otherwise inaccessible instance of
Function. Is that correct? Why is there no
invoke method declared anywhere (or where is it declared)?