Mail Archives: djgpp/1997/05/27/21:47:51
In article qun AT bambam DOT soi DOT city DOT ac DOT uk, nostra AT city DOT ac DOT uk (Mark Lewis) writes:
>On 20 May 1997 00:41:55 GMT, Alex Kain <syntaxlogic AT earthlink DOT net> wrote:
>> What are the advantages of programming a CRPG in C++? After comparing
>> compiled versions of the same game in DJGPP and using Allegro, the C file
>> is only half the size as the C++ file! Is it really worth it?
>
>If the code is already written in C then compiling it as C++ is a waste of
>time. If you're writing it from scratch then the advantages of using C++
>(as well as better type safety) are basically the advantages of using an
>object-oriented methodology and should be laid quite nicely in any
>literature on O-O design.
[Mark's PGP sig snipped for space, see original]
With todays compilers, mixed language programming should be little
problem. Use reuse code in whatever language it was written in
(the gcc family of free compilers will compiler a long list of
languages).
For O-O and type safety, and plenty of other features, I would
recommend Ada for new code, but that is a personal bias :-)
--david kristola (not speaking for Lockheed Martin or SAMCO)
(My news reader does not understand the firewall, oh well, automatic spam shield)
Home: David95037 at aol dot com
Work: davidk at os6 dot epc dot lmms dot lmco dot com
Spam: eat-spam-and-die AT dev DOT null
- Raw text -