Mail Archives: djgpp/2002/01/24/20:04:41
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f
|
From: | "Jeroen Vandezande" <Jeroen DOT Vandezande AT tvd DOT be>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: C or C++?
|
Date: | Fri, 25 Jan 2002 01:31:28 +0100
|
Organization: | [ posted via Easynet Belgium ]
|
Lines: | 37
|
Message-ID: | <a2q910$v4s$1@rivage.news.be.easynet.net>
|
References: | <a2l20p$qdv$1 AT rivage DOT news DOT be DOT easynet DOT net> <a2m9ok$bvp$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
|
NNTP-Posting-Host: | 212-100-181-30.adsl.easynet.be
|
X-Trace: | rivage.news.be.easynet.net 1011918688 31900 212.100.181.30 (25 Jan 2002 00:31:28 GMT)
|
X-Complaints-To: | abuse AT easynet DOT be
|
NNTP-Posting-Date: | 25 Jan 2002 00:31:28 GMT
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 6.00.2600.0000
|
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Thanks!,
The TP programs contain no OO, but I am reading a few book about learning OO
and, while looking at my old TP code I found that I could brake up the
program in some nice classes, so maybe I will go for C++.
"Hans-Bernhard Broeker" <broeker AT physik DOT rwth-aachen DOT de> wrote in message
news:a2m9ok$bvp$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE...
> 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 -