www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/22/21:39:15

From: "Walt Mundt" <emage AT mail DOT dbeach DOT com>
Newsgroups: alt.msdos.programmer,comp.os.msdos.djgpp,rec.games.design,rec.games.programmer
Subject: Re: C or C++
Date: Wed, 21 May 1997 18:54:04 -0400
Organization: News-Journal Center
Lines: 14
Message-ID: <5lviee$feh@nj1.n-jcenter.com>
References: <01bc64bb$79a13040$69e22499 AT syntaxlogic DOT earthlink DOT net>
NNTP-Posting-Host: depm2c-19.n-jcenter.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>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?
>--
>Alex Kain
>syntaxlogic AT earthlink DOT net
Well, it depends on the structure of your game.  Also, if you stick to the
C libraries(compile a C++ file with no libraries and manually link
libc/crt0...), you'll get a smaller executable which still supports C++
coding features like classes, but without all the enhanced input/output. 
Since I haven't tried new and delete that way yet, I don't know if they
work either...


- Raw text -


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