delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/18/15:44:47

From: "Campbell, Rolf [SKY:1U32:EXCH]" <moscoop AT americasm01 DOT nt DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: new vs malloc
Date: Fri, 18 Feb 2000 15:03:40 -0500
Organization: Nortel Networks
Lines: 13
Message-ID: <38ADA59B.48B71162@americasm01.nt.com>
References: <38AD8622 DOT AE067F97 AT tiscalinet DOT it>
NNTP-Posting-Host: wmerh0tk.ca.nortel.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.72 [en] (X11; I; HP-UX B.10.20 9000/785)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

night DOT walker AT tiscalinet DOT it wrote:

> Which is the difference between the "new" command and the "malloc"
> function?

    "new" calls the constructor for the class of object you are
allocating.  Also, new aborts your program if it runs out of memory.

--
(\/) Rolf Campbell (\/)



- Raw text -


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