delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/14/22:07:47

Mime-Version: 1.0
To: "John M. Aldrich" <fighteer AT cs DOT com>, djgpp AT delorie DOT com
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: Null-Pointer and Assembly
Date: Thu, 14 May 1998 19:03:21 -0700
Message-ID: <19980515020310.AAF15760@ppp123.cartsys.com>

At 07:02  5/14/1998 -0400, John M. Aldrich wrote:
>Gerhard Gruber wrote:
>> 
>> That's not exactly true. If you use the MFC (recommended by MS) then you get
>> hundreds of codelines calling assert() to ensure that there is no null
>> pointer.
>> 
>> I can't believe it! I just wrote a mail that defends MS. Must getting sick or
>> the heat affects my brain. :)
>
>I guess that post must have been tongue-in-cheek.  After all, *0 is a
>NULL-pointer dereference and all the asserts in the world won't catch
>it.  :-)  However, cwsdpmi bombs on it while Windows just keeps on
>truckin'...

But probably he means that with Mircosoft MFC, `*0' expands to:

assert(0);
*0;

How inspired.

Nate Eldredge
nate AT cartsys DOT com



- Raw text -


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