On Thu, Jun 4, 2015 at 2:24 PM, Seth Fowler <[email protected]> wrote:
> My impression was that the conclusion was “refcounted objects are not banned 
> inside C++ lambdas” - i.e., no policy change from the status quo - "but we 
> need to be aware of the pitfalls”. The pitfalls are discussed pretty 
> thoroughly in the thread.

Capturing of raw pointers to refcounted objects was in fact banned - a
static analysis forbidding it was introduced in bug 1153304.

(Note that, as I discovered recently, the static analysis was
over-eager and was also complaining about raw pointers to refcounted
object being taken as an argument or used as a local variable inside a
lambda - I'm about to land a fix for that in bug 1170388).

Cheers,
Botond
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to