delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/02/09:34:39

From: eyal DOT ben-david AT aks DOT com
To: djgpp AT delorie DOT com
Message-ID: <422564AA.004D330F.00@aks.com>
Date: Mon, 2 Jun 1997 16:29:29 +0200
Subject: Re: Quake vs. Demos
Mime-Version: 1.0



> Of course, C++, IMHO, is not for games, or anything that has to run
> quickly.
A  myth.
C++ is as low level and fast exactly as C.

The poster probably meant that the object oriented paradigm is not suitable
enough.

I disagree on that also. Sometimes good OO design results in an even faster
code.
Think about  virtual function calls vs chains of "if-else" or "switch"
statements.
C++ is a multi-paradigm language:
  You want to write code in a C-like procedural manner ?  you can.
  You want Object Oriented programming ? you got it.
  You want Generic Programming <templates , STL>  ? you got it.

plus, the compiler is always watching you. it won't let you do things that
a C-compiler
allows. Therefore , a C++ compiler is an even better way to learn C !.

... and many more benefits.

Eyal.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019