Re: free()



Richard Heathfield wrote:
Chris Dollin said:

.... snip ...

It might not only be goats that use trollguns, and anyway there may
be other circumstances where you need to destroy a trollgun other
than the one where you are destroying - sorry! deleting - a goat.

Yes - but the same argument applies: either I'm going to destroy
the place that pointed to the gun, so no point nulling it, or I'm
going to give it a new value, so no point nulling it.

No, there's another possibility - that the entity that had the gun no
longer has a gun (I dunno, perhaps the troll rips out the arm that was
holding it or something), and thus NULL is an appropriate value for
that pointer. For me, this is often the case, (not that I use trollguns
very often) - objects gain and lose other objects with careful abandon.

I thought the UK had some fairly strict gun control laws. You
can't just allow any old goat to roam about shooting random
trolls. Some have redeeming values.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>

"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews


.



Relevant Pages

  • Re: OT Time to ban all guns in the US of A
    ... If anybody just desires a gun, ... Lenin must have been a Democrat! ... Get the peoples' mind off their government by focusing their attention on athletics, ... Destroy the peoples faith in their natural leaders by holding up the latter to ...
    (alt.sports.football.pro.ne-patriots)
  • Re: Plausibility of the 21st Century Thus Far
    ... and the Eighth Army's counter-battery radar is? ... on a layer of hard rock, twenty feet underneath which is the gun you ... so you can assume ten thousand shells hit a thousand ... the time it takes us to find and destroy them all. ...
    (rec.arts.sf.written)
  • Re: Destruction of gun
    ... mike3 wrote: ... Doug T ...
    (rec.guns)
  • Re: OT: America
    ... He was never a good guy, it's just that Iranians were worse ... There weren't any WMD warheads destroyed with those missiles because there weren't ... >country, destroy their infrastructure and their society, there should be overwhelming evidence ... Now I don't know about you but, if some had a gun, and previously kill ...
    (rec.food.cooking)
  • Re: Plausibility of the 21st Century Thus Far
    ... on a layer of hard rock, twenty feet underneath which is the gun you ... so you can assume ten thousand shells hit a thousand ... many cruise missiles as would be required to destroy North Korea's ...
    (rec.arts.sf.written)