On Wed, Jul 25, 2012 at 4:21 PM, Aryeh Gregor <a...@aryeh.name> wrote:

> On Wednesday, July 25, 2012 3:04:31 PM UTC+3, Justin Lebar wrote:
> > &gt; The next step is to s/nsnull/nullptr/ in the codebase, and get rid
> of nsnull.
> >
> > Forgive my ignorance, but how does this affect NULL?  Would that be
> > deprecated in favor of nullptr as well?  Should we use nsnull instead
> > of NULL in new code, in anticipation of the nsnull --&gt; nullptr switch?
>
> That would be a logical next step, for sure.  I'd definitely say nullptr
> should be used instead of NULL where possible, because the extra type
> safety is valuable.  I guess it would make sense to try mass-changing NULL
> to nullptr,


What about the JS engine (which uses NULL), and code that uses js-engine
style, such as (parts of) XPConnect? I imagine that the embedding situation
makes things more complicated there than a simple find/replace.

bholley
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to