Newsgroups: comp.lang.c++,comp.lang.smalltalk,comp.lang.eiffel,comp.lang.ada,comp.object,comp.software-eng
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel-eecis!gatech!csulb.edu!hammer.uoregon.edu!news.mathworks.com!uunet!in1.uu.net!165.254.2.52!news.new-york.net!nonexistent.com!not-for-mail
From: vlad@world2u.com (Vlastimil Adamovsky)
Subject: Re: What is wrong with OO ?
X-Newsreader: Forte Free Agent 1.0.82
X-Nntp-Posting-User: (Unauthenticated)
Message-ID: <E5F4E9.Ktn@nonexistent.com>
References: <JSA.97Jan3143208@alexandria> <fxtu3oysbzp.fsf@isolde.mti.sgi.com> <JSA.97Jan6190704@alexandria> <E3uK9F.CzG@research.att.com> <E5Dx8v.6y3@tip.nl>
X-Trace: 855630078/26949
X-Nntp-Posting-Host: i123.138.world2u.com
Date: Tue, 11 Feb 1997 03:03:35 GMT
Lines: 43
Xref: glinda.oz.cs.cmu.edu comp.lang.c++:247095 comp.lang.smalltalk:51392 comp.lang.eiffel:18338 comp.lang.ada:57419 comp.object:60992 comp.software-eng:53624

richard@highrise.nl wrote:

>................................. but in my view C++ is basically C with the 
>capability to add functions to structs. Before I tried C++, I would
>bundle pointers to functions in my C-structs to fake some kind of
>OO-like bundling of similar functions ;)   C++ take this a major
>step further by actually bundling data and functions together
>in a struct. But that is what classes are in C++: just enhanced
>structs!

Whow! Then you really don't need C++. Use C instead. 
There is nothing keeping you from using member functions in C structures.
It is completely legal.

>I find that many of the OO-capabilities of C++ are just "crammed in"
>to overcome the static nature of the language. C++ is by far not 
>elegant in this respect. I get the idea that a lot of features 
>have been braught in on the fly ("hey, multiple inhertiance
>would be neat. And while we're at it, let's try templates too").

Multiple inheritance is great. Templates are very useful in generic programming.

>That C++ still works as a OO-language is mostly due to the strengths of
>the language C itself... it appears to still work even under the
>weirdest circumstances. In that respect Stroustup made an excellent
>chouce by using C as a base ;)

It was a smart choice.











 Vlastimil Adamovsky
 ** C++ and Smalltalk consultant **
 * http://www.stepweb.com *

