[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: KDE/kdetoys/kweather
From:       David Faure <faure () kde ! org>
Date:       2007-03-30 12:21:08
Message-ID: 200703301421.08861.faure () kde ! org
[Download RAW message or body]

On Friday 30 March 2007, Dirk Mueller wrote:
> On Thursday, 29. March 2007, David Faure wrote:
> 
> > Fix compilation. Using NULL for Lubos, but I'm really confused about
> > whether we should use NULL or not...
> 
> 0 is NULL in C++, except for the case of variadic arguments due to C 
> compatibility (where 0 is interpreted as int 0, causing crashes on platforms 
> where sizeof(int) != sizeof(void*)).

Right, that's what I had remembered. So why would we need to clutter the code with
an ugly 4-uppercase-letters word that looks like a macro? I guess I simply disagree
with Lubos' statement ("embrace the new millenium and start using NULL") then.

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic