From: Nathan Gray Newsgroups: rec.games.design,alt.msdos.programmer,comp.os.msdos.djgpp,rec.games.programmer Subject: Re: C or C++ Date: Wed, 28 May 1997 09:23:05 -0400 Organization: MIT Lincoln Laboratory Lines: 10 Message-ID: <338C31B9.3146@ll.mit.edu> References: <5lrt2d$qun AT bambam DOT soi DOT city DOT ac DOT uk> <5mftso$2nc AT butch DOT lmms DOT lmco DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Since we're on the subject of C and C++, does anyone have a good explanation for the differences between malloc() and new? As a native C++ programmer, my first instinct is to use new, but I see malloc() so often I'm starting to wonder if I'm missing something. -- | Nathaniel A. Gray | MIT Lincoln Laboratory | | gray AT ll DOT mit DOT edu | Group 35 - Signature Studies and Analysis| |------------------------------------------------------------------| | "But don't panic! Base eight is just like base ten, really... | | if you're missing two fingers!" -Tom Lehrer |