www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/17/15:49:32

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: delete NULL?
Date: Mon, 17 Feb 1997 08:24:40 -0800
Organization: Alcyone Systems
Lines: 16
Message-ID: <33088648.584497B7@alcyone.com>
References: <19970216 DOT 124451 DOT 7287 DOT 0 DOT fwec AT juno DOT com> <330767f3 DOT 6557055 AT ursa DOT smsu DOT edu> <330775C0 DOT 439E0A61 AT alcyone DOT com> <E5pup7 DOT 4KM AT boss DOT cs DOT ohiou DOT edu>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Dave Cigna wrote:

> And wouldn't it be nice if delete not only deallocated the memory used,
> but also set the pointer to NULL. This would eliminate the dangers of
> deleting something more than once.

Not when you have multiple, separate references to the same block of
memory.  Nulling one of them doesn't null the others.

-- 
        Erik Max Francis, &tSftDotIotE / email:  max AT alcyone DOT com
                      Alcyone Systems /   web:  http://www.alcyone.com/max/
 San Jose, California, United States /  icbm:  37 20 07 N  121 53 38 W
                                    \
               "I am become death, / destroyer of worlds."
                                  / J. Robert Oppenheimer (quoting legend)

- Raw text -


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