*BSD News Article 50220


Return to BSD News archive

Newsgroups: misc.jobs.offered,comp.lang.c,comp.lang.c++,comp.lang.c-cat,comp.object,comp.lang.eiffel,alt.syntax.tactical,comp.lang.misc,comp.unix.bsd.386bsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!in2.uu.net!EU.net!julienas!news.fnet.fr!ilog!news
From: davis@ilog.fr (Harley Davis)
Subject: Re: [--] Re: Beginner to C/C++ looking for some good books
In-Reply-To: coates@nova.umuc.edu's message of 26 Aug 1995 00:47:36 -0400
Message-ID: <DAVIS.95Aug28125457@halles.ilog.fr>
Followup-To: misc.jobs.offered,comp.lang.c,comp.lang.c++,comp.lang.c-cat,comp.object,comp.lang.eiffel,alt.syntax.tactical,comp.lang.misc,comp.unix.bsd.386bsd.misc
Lines: 36
Sender: news@ilog.fr
Nntp-Posting-Host: halles
Organization: Ilog SA, Gentilly, France
References: <40b4i2$egf@ixnews5.ix.netcom.com> <brockmanDDLJDL.2IJ@netcom.com>
	<41alha$b1g@cisunix1.dfci.harvard.edu> <DDowtJ.KL6@research.att.com>
	<41fqd0$jp0@espresso.internet-cafe.com> <41m918$jkf@nova.umuc.edu>
Date: 28 Aug 1995 10:54:57 GMT
Xref: euryale.cc.adfa.oz.au misc.jobs.offered:202318 comp.lang.c:111809 comp.lang.c++:122590 comp.object:31317 comp.lang.eiffel:9123 alt.syntax.tactical:941 comp.lang.misc:17221 comp.unix.bsd.386bsd.misc:155


In article <41m918$jkf@nova.umuc.edu> coates@nova.umuc.edu (Elliott Coates) writes:

> [C++ is]
> : ... unsatisfactory on both
> : counts: not as good as C as a simple, efficiently
> : compilable machine-oriented language; yet not delivering the true benefits
> : of object technology because it is hampered at every step by
> : the yoke of C compatibility (in areas such as memory management,
> : type safety, modular structures, syntax, pointers, array handling etc.).
> 
> On memory management -- 'delete' every 'new'.

How do you know when you should delete an object?

> On type safety, modular structures, syntax, and pointers - how is C++ 
> deficient?  Agreed there are no built-ins for array boundary checking, 
> but the C++, and C programmer knows to check for this.

How do you then explain the Internet worm, which exploited a unchecked
array write bug in the C program sendmail?  Perhaps the author of
sendmail wasn't a C programmer?

> Further, C is cool, and C++ builds on its coolness.

At last we get to serious arguments...

-- Harley Davis
-- 

-------------------++** Ilog has moved! **++----------------------------
Harley Davis                            net: davis@ilog.fr
Ilog S.A.                               tel: +33 1 49 08 35 00
9, rue de Verdun, BP 85                 fax: +33 1 49 08 35 10
94253 Gentilly Cedex, France            url: http://www.ilog.com/