Value Type:
a stream.
Initial Value: Implementation dependent. Description:
The suggested implementation of encapsulating streams has a potential problem that is sometimes called the "delegation" or "multiple self" problem.
In order to side-step this problem without attempting to solve a difficult general problem in object-oriented programming, CLIM implementations may introduce a special variable, *original-stream*.
*Original-stream is bound by the trampoline methods on encapsulating-stream to the encapsulating stream, before the operation is delegated to the underlying, encapsulated stream.
This "solution" does not solve the more general problem of multiple levels of encapsulation, but the complete stream protocol provided by CLIM should allow implementors to avoid using nested encapsulating streams.
Affected By:
Methods specialized on encapsulating-stream.
See Also:
Notes: None.