in reply to Re^5: Understanding 'Multiple Inheritance' (hindsight)
in thread Understanding 'Multiple Inheritance'

Except my system already handles that. You have an output system that is pipelined with the music-maker and the controls. The controls will say to the speakers "Please increase the volume from 5 to 6". The music-maker will say to the speakers "Please output the following sounds". The speakers will then do what they feel is appropriate with what they receive. Pictures, sound, smells ... I don't care. The pipeline has done what it was supposed to do - pass requests back and forth.

Now, it may be appropriate to create an aggregate class to deal with the speakers. But, that aggregate class will conform to the same API as a standard speaker, so it's a drop-in replacement - a plug-in, so to speak.

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

  • Comment on Re^6: Understanding 'Multiple Inheritance'

Replies are listed 'Best First'.
Re^7: Understanding 'Multiple Inheritance'
by BrowserUk (Patriarch) on Mar 07, 2005 at 15:14 UTC

    But what-if the 'visual speakers' need to feed-back to the MusicMaker to say "Don't feed me any high-frequency components, because the user is in bright sunlight and their definition is lost, so instead, spread the frequencies below this cutoff level over the full range"?

    Don't take that too literally, I ain't an audio-visual engineer, it probably makes no sense at all. But the point is, you cannot predict what the future requirements may be, nor what vertical splits in the overall architecture will makes sense when the future arrives.

    It made no sense to use separate subsytems when they made the big valve driven "wireless" set that I remember from my childhood home. And I remember when my father saw his first "separate subsytem stereo", (deck, amp, tuner, eq etc.)--my sister got it for her birthday--he offered to build her a nice all-in-one wooden cabinet to hold it :).

    (Does anyone remember the early 80's UK TV ad. for a Sony audio system with John Cleese? The separates came with a stand-alone cabinet with a smoked glass door, and the catch-phrase was something like "Hides all that spagetti hanging out the back!")

    Predicting the future is a very inexact science.


    Examine what is said, not who speaks.
    Silence betokens consent.
    Love the truth but pardon error.