Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!lth.se!newsuser From: dag@control.lth.se (Dag Bruck) Newsgroups: comp.object Subject: Re: Examples of Multiple Inheritance? Message-ID: <1990Dec4.103937.25471@lth.se> Date: 4 Dec 90 10:39:37 GMT References: <60700005@inmet> Sender: newsuser@lth.se (LTH network news server) Organization: Department of Automatic Control, Lund, Sweden Lines: 26 I have once made good use of MI in C++. The task was to implement a logging window using the AT&T iostream library and the InterViews user interface library. The low-level output of iostream was made by deriving from `streambuf'. The user interface was was derived from an `HBox' in order to combine a `TextDisplay', a scrollbar, etc. I also added functionality so the window de-iconizes itself when new output arrives. Please note that the use of MI in the AT&T iostream library is not involved here -- the `streambuf' is at a lower level. I think this application of MI was sucessful. It was a practical way of combining two class hierarchies, and I think the solution is very clean. This application could easily have been implemented without MI (I drafted such a solution as well), but I guess this would have required writing more code. Dag M. Bruck -- Department of Automatic Control E-mail: dag@control.lth.se Lund Institute of Technology P. O. Box 118 Phone: +46 46-104287 S-221 00 Lund, SWEDEN Fax: +46 46-138118 Brought to you by Super Global Mega Corp .com