www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/17/21:48:55

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 <blizzar AT hem1 DOT passagen DOT se>
Subject: Re: new operator
Cc: djgpp AT delorie DOT com
Mime-Version: 1.0

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! *
******************************************************

- Raw text -


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