Hi,
OOP lectures usually begin with: "Objects communicate by sending
messages to each other."
BUT: have you ever seen something like:
`senderObject sendMessageTo: receiverObject` ???
Instead, it's always like:
`receiverObject receiveMessageWithOrWithoutArguments: args`
QUESTION: Who is the "sender" actually?
I've heard/found three "opinions":
(1) `self` (aka `this`)
(2) context/closure where the send happens
(3) the programmer :)
Do we ever care about senders? Is knowledge about senders relevant in
some way in writing code?
(Note: message "senders" are not to be confused with context chain's
senders.)
Although I tend to agree with (1), you hear so often: "You send a
message to an object [...]" that (3) almost sounds like an implicit
understanding (unless, of course, "you" are meant to step into self's
shoes).
Ok, back to serious work :)
Merry Christmas,
Jaromir
--
Jaromir Matas
mail(a)jaromir.net