From owner-freebsd-hackers Tue Mar 5 8:37:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by hub.freebsd.org (Postfix) with ESMTP id 1737237B400 for ; Tue, 5 Mar 2002 08:37:30 -0800 (PST) Received: from dhcp206.mis.earthlink.net ([207.217.66.246] helo=DROID) by pintail.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 16iHwE-00010Q-00; Tue, 05 Mar 2002 08:37:18 -0800 Message-ID: <001201c1c464$06416fd0$f642d9cf@DROID> From: "Steve B." To: "Eugene L. Vorokov" , References: <200203051407.g25E7Cd67446@bugz.infotecs.ru> Subject: Re: C vs C++ Date: Tue, 5 Mar 2002 08:37:21 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 I take a simplistic view after years of C++. C++ is good for large projects that need to be maintained into the future. Then the advantages of OO starts to kick in. For small projects that won't change much then C is the better choice IMO. Second is size, C will generate smaller executables. C++ to do its things adds overhead that increases the size of the object files. Steve B. ----- Original Message ----- From: "Eugene L. Vorokov" To: Sent: Tuesday, March 05, 2002 6:07 AM Subject: C vs C++ > Hello, > > I have a small problem. I work for software development company and > write daemons and console tools for Unix. My boss wants everything > to be written in C++, because he thinks C++ is cool. I prefer C > for such tasks, but I cannot really put good arguments of why and > where C++ can be worse than C. I know many of you prefer C too. > Can you please explain some disadvantages of C++ comparing to C ? > Is it slower, does it produce less effective code, why is it like > that, etc ... or please direct me to some articles where this can > be explained. > > I apologize for the offtopic whenever it happens, but this issue > really pisses me off now. > > Regards, > Eugene > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message