octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Re: New function proposal


From: michael . goffioul
Subject: RE: Re: New function proposal
Date: Thu, 15 Feb 2007 10:51:45 +0100

>>> Is NULL necessary? Won't 0 work just as well in C++ code with proper
>>> prototypes?
>>
>> It's a pointer, so reinterpret_cast(0) or
>> (LPSECURITY_ATTRIBUTES)0 should be OK. I just found NULL easier
>> to write. I forgot it had to avoided in C++.
>
> I don't think you need a cast here. Just using 0 should be fine. If
> it is not, then what error does it produce?
 
I forgot to address this issue in the last patch I sent. However, replacing
NULL with 0 just compiles OK. So you can safely s/NULL/0/g in the
patch I sent.
 
Michael.
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]