home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- From: nikki@trmphrst.demon.co.uk (Nikki Locke)
- Path: sparky!uunet!pipex!demon!trmphrst.demon.co.uk!nikki
- Subject: Re: Should I use a generic object which all others inherit f
- Reply-To: nikki@trmphrst.demon.co.uk
- Distribution: world
- X-Mailer: cppnews $Revision: 1.20 $
- Organization: Trumphurst Ltd.
- Lines: 34
- Date: Thu, 19 Nov 1992 12:24:40 +0000
- Message-ID: <722201080snx@trmphrst.demon.co.uk>
- Sender: usenet@gate.demon.co.uk
-
- In article <1992Nov17.190821.18348@informix.com> cshaver@informix.com (Craig Shaver) writes:
- > In article <3762@news.cerf.net> hlf@nic.cerf.net (Howard Ferguson) writes:
- > >I am working on the early stages of design on an embedded C++
- > >project. One of the decisions which we will have to make in the
- > >near future is whether to make all of the objects inherit from
- > >onie generic object at the top of the tree or to go for the forest
- > >approach.
- >
- > An embedded system! C++!? JUST USE C!!!!
- >
- > UNLESS ....
- >
- > You have some of the benefits of OOP in mind, such as inheritance, reuse,
- > and information hiding. Then if you are willing to take small dings in
- > performance go all the way and use the tree approach as pioneered by
- > Smalltalk. I recently saw a review of the toy code that comes with the
- > borland compiler. The article's author commented that the tree type
- > libraries were "passe" because of templates. What a stupid thing to say!
- I agree with that author, not with you !
-
- > One of the big wins of OOP is reuse. By using an inheritance structure
- > you can reuse existing code and do incremental development. Related and
- > unrelated classes can be used in the same context where a similar protocol
- > is enforced.
- >
- > I have to think some of the people involved with C++ have no idea what the
- > basis of OOP really is. They are simply using C++ as an improved C.
- True. However, many people involved with C++ have no idea of the
- usefulness of static type checking, the simply pervert C++ to be a faster
- Smalltalk :-)
-
- --
- Nikki Locke,Trumphurst Ltd.(PC and Unix consultancy) nikki@trmphrst.demon.co.uk
- trmphrst.demon.co.uk is NOT affiliated with ANY other sites at demon.co.uk.
-