News for hackers. Stuff that matters.
Re:Single Writer Principle (2011) by spooneybarger on Monday May 11, 2020 @02:21PM (#23145281)
A large part of your confusion might be that a lot of OO teaching sources define message passing as calling a function.

Message passing allows for you to have the receiver of the message run in a different execution context; for example erlang.

Calling an objects methods with parameters is tied to that execution context.

Message passing is a larger concept than OOP. Microkernels for example are built around message passing as the means of communication.

Re:Single Writer Principle (2011) by int_19h on Monday May 11, 2020 @06:27PM (#23147877)
> Calling an objects methods with parameters is tied to that execution context.

Not necessarily - this depends on the language, or rather, on the object model. But consider COM or CORBA: you call a method, but the object might be on a different machine altogether.