Message-Id: <3.0.16.19980217113334.3adf80d6@hem1.passagen.se> Date: Tue, 17 Feb 1998 12:30:56 -0500 To: Anthony DOT Appleyard AT umist DOT ac DOT uk From: Peter Palotas Subject: Re: new operator Cc: djgpp AT delorie DOT com Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Precedence: bulk At 07.30 1998-02-17 GMT, you wrote: > mwallace AT wiltel DOT com (Michael Wallace x3738) wrote:- >> In DJGPP, does the new operator throw an exception if it cannot allocate the >> requested memory? Or does it just return a NULL value.? Mike > > It returns 0, plainly, simply, thankfully. I've never seen `new´ return NULL in DJGPP, thankfully! Because the C++ standard says that `new´ is not allowed to return NULL (unless nothrow is used, but that's not implemented yet I think). -- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se -- ****************************************************** * A brief description of DJGPP: * * NEVER BEFORE HAVE SO FEW DONE SO MUCH FOR SO MANY! * ******************************************************