From: davidk AT OS7 DOT ifs (David Kristola) Newsgroups: rec.games.design,alt.msdos.programmer,comp.os.msdos.djgpp,rec.games.programmer Subject: Re: C or C++ Date: 28 May 1997 00:22:48 GMT Organization: Sun Microsystems, Inc. Lines: 28 Distribution: world Message-ID: <5mftso$2nc@butch.lmms.lmco.com> References: <5lrt2d$qun AT bambam DOT soi DOT city DOT ac DOT uk> Reply-To: davidk AT OS7 DOT ifs NNTP-Posting-Host: os7.epc.lmms.lmco.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 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