From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2005-03-04 14:21:37
"Johan Nilsson" wrote:
>> H. S. Lahman list available options and argues that passing
>> anything else than values is dangerous and causes high coupling:
>> (the paragraphs starting with "pure message").
> If you use well-defined interfaces I can't see how that would cause any
> higher coupling than during normal circumstances (remoting aside). A
> pretty common usage would be implementing the Observer pattern
What I mean is:
I am interface A and I call interface B. I pass interface C and
B will call C.
Now B needs to handle all possible C exceptions.
Some exceptions may be passed back to A (depending
on implementation). Now also A needs to know about C
and how to deal with its problems.
If there are only asynchronously passed values one needs
to guard timeouts and watch internal state machine of A correct.
Added complexity in B, C, ... doesn't spill (much) into A.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk