Re: if (blah) ... on Wed, Aug 11, 1999 at 11:46:08PM -0600

From: Oleg V. Volkov (cm_rover@lglobus.ru)
Date: 08/11/99


On Wed, Aug 11, 1999 at 11:46:08PM -0600, Zeavon wrote:
> > >It certainly _is_.  No-one ever thinks it's their code
> > that's broken, but
> > >it is 99.9999999998% of the time.  You've screwed up your linked list
> > >somewhere and maybe a few other pointers elsewhere.  Perhaps
> > you have a
> > >memory overrun.
> > Then why would if (blah) cause problems where if (blah !=
> > NULL) does not?
> > Surely if blah is not equal to NULL and if's behaviour is as
> > specified they
> > should be functionally identical. They are certainly not in
> > this particular
> > case.
> This has already been said, but perhaps you missed that email or just
> ignored what it had to say.
> if (blah)
> and
> if (blah != NULL)
> are NOT identical in their functionality!

Why?!
Could you supply at least one example where replacing if (blah) with
if (blah != NULL) give different results?

--
Oleg V. Volkov aka Rover                              E-mail: rover@lglobus.ru
E-mail redirector: sr-13@mail.ru (always up)                     -=/ SR 13 /=-


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST