From owner-freebsd-hackers Tue Mar 5 13:57:17 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailg.telia.com (mailg.telia.com [194.22.194.26]) by hub.freebsd.org (Postfix) with ESMTP id BF1FD37B400 for ; Tue, 5 Mar 2002 13:57:06 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailg.telia.com (8.11.6/8.11.6) with ESMTP id g25Lv4H02869 for ; Tue, 5 Mar 2002 22:57:04 +0100 (CET) Received: from falcon.midgard.homeip.net (h217n1fls20o913.telia.com [212.181.162.217]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id WAA16673 for ; Tue, 5 Mar 2002 22:57:04 +0100 (CET) Received: (qmail 76756 invoked by uid 1001); 5 Mar 2002 21:57:03 -0000 Date: Tue, 5 Mar 2002 22:57:03 +0100 From: Erik Trulsson To: Kenneth Culver Cc: Terry Lambert , "Steve B." , "Eugene L. Vorokov" , freebsd-hackers@FreeBSD.ORG Subject: Re: C vs C++ Message-ID: <20020305215702.GA76733@student.uu.se> Mail-Followup-To: Kenneth Culver , Terry Lambert , "Steve B." , "Eugene L. Vorokov" , freebsd-hackers@FreeBSD.ORG References: <3C8529DA.FA8ABCE@mindspring.com> <20020305164151.T5854-100000@alpha.yumyumyum.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020305164151.T5854-100000@alpha.yumyumyum.org> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Mar 05, 2002 at 04:43:22PM -0500, Kenneth Culver wrote: > > Because that underlying assumption is false, and I'm making > > fun of it. > > > Well, that in itself is wrong. C++ code IS harder to write and write > correctly and effeciently, as I would assume it is for any OO language. > I'm not saying it can't be done, but generally speaking based on the Open > source and commercial products I've seen, the ones that are written in C++ > suffer from more bloat and run slower. But you don't need to write OO code just because you use C++. You can write code in C++ exactly the way you do it in C if you want. There is no advantage of C++ over C when used this way but no disadvantage either. I do agree that when the extra features of C++ are used this often results in bloated programs but this can at least in part be blamed on insufficiently skilled programmers. Note that C++ is not really an OO language. It is probably better to call it a language with support for object-oriented programming (as well as support for other programming styles.) -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message