Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!ditka!comeau From: comeau@ditka.Chicago.COM (Greg Comeau) Newsgroups: comp.sys.amiga.programmer Subject: Re: C++ Message-ID: <37045@ditka.Chicago.COM> Date: 18 Apr 91 15:12:47 GMT References: <50511@nigel.ee.udel.edu> <36852@ditka.Chicago.COM> <1991Apr15.222555.24808@cunixf.cc.columbia.edu> Sender: comeau@ditka.chicago.com (Greg Comeau) Reply-To: comeau@csanta.attmail.com (Greg Comeau) Organization: Comeau Computing Lines: 32 In article <1991Apr15.222555.24808@cunixf.cc.columbia.edu> es1@cunixb.cc.columbia.edu (Ethan Solomita) writes: >In article <36852@ditka.Chicago.COM> comeau@csanta.attmail.com (Greg Comeau) writes: >>The goal is to strive for a natural an integration as possible. Your >>C solution does not do that. The C++ way is "just there" and simple >>to use. So long as the C++ way is like that and available, seems the >>slight of hand C alternative is greatly inferior. >> > But it would seem to be very hard to optimize the C code >generated by C++, as compared to writing the C code directly. It >isn't like you can write in C++, translate to C, and then muck >around easily in the C code, not that even doing that would be >optimal. A common saying in C++ circles is that "You don't pay for what you don't use.". I usually add on to that and say "... and even when you do use it, you don't pay). The results I have received from both formal and informal research, speaking with literally thousands of C and C++ programmers, my own toying and experience has amply and overwhelmingly demonstrated that a C++ translating compiler has no penalty in terms of your executable quality. Right, you don't need to muck around in the C, now should you have to. Just like you normally wouldn't muck around in the asm generated from your C compiler. - Greg -- Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418 Producers of Comeau C++ Here:attmail.com!csanta!comeau / BIX:comeau / CIS:72331,3421 Voice:718-945-0009 / Fax:718-441-2310