On Fri, Apr 12, 2013 at 3:33 PM, Karen Shaeffer <shaef...@neuralscape.com>wrote:
>
> Was reading the coding-style documentation. Have just one question
> concerning
> C++ null pointer value. Quoting the coding-style docs, "In C++, the null
> pointer
> value should be written as 0."
>
> My question is: Doesn't xcode clang now support features like nullptr?
> Shouldn't
> the coding-style documentation be updated to use nullptr?
>

The problem is the variety of compilers used by the various ports (WebKit
is also used on Windows, Linux, Solaris, etc.), not all of them supports
nullptr.

You can already use nullptr with some types (RefPtr, OwnPtr, etc). That is
thanks to a hack in Source/WTF/wtf/NullPtr.h

Cheers,
Benjamin
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to