delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/23/07:30:05

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C or C++?
Date: 23 Jan 2002 12:19:32 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 24
Message-ID: <a2m9ok$bvp$1@nets3.rz.RWTH-Aachen.DE>
References: <a2l20p$qdv$1 AT rivage DOT news DOT be DOT easynet DOT net>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1011788372 12281 137.226.32.75 (23 Jan 2002 12:19:32 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 23 Jan 2002 12:19:32 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Jeroen Vandezande <Jeroen DOT Vandezande AT tvd DOT be> wrote:
> Hi,


> I am learning C and will soon convert at my work my old Turbo Pascal
> Progs to C/C++ but what should I use C or C++?

I'd make that decision on a per-program basis. If the Pascal program
is in traditional Turbo Pascal (version 5.0 or below, IIRC), it will
have no OO in it.  In that case, C is the better choice because it
more closely reflects the type of programming language TurboPascal
was, back then.  It's also a smaller language, so it should be easier
to learn.

If, OTOH, your program was made with later version of Turbo Pascal, it
may already be using Objects (certainly will if you were using the
Turbo Vision user interface library).  In that case, you'll be a lot
better off translating it into C++.



-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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