News for hackers. Stuff that matters.
Re:The Gang of Four book is wrong about delegation (2012) by galaxyLogic on Thursday June 29, 2017 @03:35PM (#14666211)
Perhaps a better way to explain "delegation" would be to say that it means "borrowing a method from some other object then executing it in the context of the borrower.

In O-O the "context" in particular refers to the "message recipient" available as the value of the pseudo-variable 'this' (or 'self' in Smalltalk).

To delegate = To borrow a method. Delegator = Borrower. Delegate = Lender.

There are no comments on this comment yet.