Client-Specified Self


By: P. Viljamaa

Summary: Replaces message to "self" with messages to an argument. Using the sender as the argument lets it inherit methods from others besides its superclasses.

Pattern: Client-Specified Self

Replaces message to "self" with messages to an argument. Using the sender as the argument lets it inherit methods from others besides its superclasses.

Published in: PLoPD1
Pages: 495-504
Category: Smalltalk Idioms