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

List:       kde-commits
Subject:    Re: kdenetwork/ktalkd/ktalkd
From:       Malte Starostik <malte () kde ! org>
Date:       2003-01-15 21:59:39
[Download RAW message or body]


On Wednesday 15 January 2003 22:50, Dirk Mueller wrote:
> On Mit, 15 Jan 2003, Malte Starostik wrote:
> > Right; I don't know about any other platform that does such weird stuff,
> > but IIRC at least the Borland compilers on Windows have 0xffffffff as
> > internal representation of the null pointer. For Delphi I'm 100% sure
> > (granted, not C++), for bcc about 50%. At least it shows that it's not a
      ^^^^^^^^^^^^^^^^^
> > purely theoretical issue defined by the Standard that a null pointer need
> > not be all-zero bits.
>
> And delpi is C++ nowadays ?

Of course not!

> Even if the internal representation of a NULL pointer is 0xdeadbeef
> if(p) and if(!p) have to work.

Sure, but when there are varargs in the way, the conversions need to be rather 
careful so one doesn't end up with all bits zero when NULL was intended.

-Malte
[Attachment #3 (application/pgp-signature)]

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

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