[PyKDE] Special-case handling for default argument of NULL vs 0?
Nigel Stewart
ns at fluent.com
Tue Feb 21 23:34:45 GMT 2006
>> We're observing some issues with methods such as:
>>
>> (a) void foo(const QString * = NULL);
>> (b) void bar(const QString * = 0);
>> So, the lesson seems to be that "= 0" is good, "= NULL" is
>> to be avoided, when it comes to sip bindings.
>
> And when it comes to C++ according to Stroustrup.
> No problem with adding this.
Thanks Phil, one less little gotcha to worry about
in future... :-)
Nigel
More information about the PyQt
mailing list