Author: Robert Hyatt
Date: 21:46:10 09/16/01
Go up one level in this thread
On September 16, 2001 at 17:38:20, Dieter Buerssner wrote: >On September 16, 2001 at 17:10:21, Bo Persson wrote: > >>But the C *language* does not have an 'inline' directive. That is C++! >>I know some compilers have it as an extension (especially if they also complie >>C++), but now we are talking implementation and not language. > >I agree with almost everything you said. I just want to note, that ISO C99 has >inline. I assume, soon all major C compilers will support inline, if they don't >do already. > >>There is *nothing* in C++ that forces you to write slower code. > >I agree here, too. > >>There are >>features of C++ that *enables* you to write faster code. You choose! > >A seriously meant question: Do you see any other features of C++ besides the >inline, that allows you to write faster code compared to C? Perhaps you can >answer in the context of chess engine (I can see, that one may be able to write >code faster). > >Regards, >Dieter You can write sloppy code in C or C++. You can write fast code in C or C++. Neither language has anything over the other in speed. C++ makes it easier to reuse source code, and has a readability advantage in some places.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.