Equivalent term for “receiver” in non-Objective-C languages

In Objective-C, if you have

[A something] 

A is called the "receiver". I wonder what the equivalent term is in other object-oriented languages, in particular, the method that calls, in contrast to sending messages.

Caller / Callee refers to the actual methods that I think, and not to the object. Also, I'm not sure about the “instance”, as in the language I work with, Vala, you can actually name methods in structures and namespaces that you would not classify as objects or instances.

What do people think?

+4
source share
2 answers

I think the most common term is simply “object”. In Python, it's traditionally called self .

+3
source

This method invokes a call rather than sending messages, so another common term, especially among Perl hackers, is invocant.

When you call a method, you do this with invocant. When you call new() on Cat , the class name of Cat is new() invocant. [...] When you call an object method, this object is invocant.

- chromatic, Modern Perl

0
source

Source: https://habr.com/ru/post/1334064/


All Articles