Mail Archives: djgpp/2002/01/23/07:30:05
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 -