On Sep 6, 2011, at 6:24 PM, Maciej Stachowiak wrote:

> On Aug 31, 2011, at 3:31 PM, David Levin wrote:
> 
>> Ignore me. I'm missing the "&".
>> 
>> I suppose if you want a RefPtr&, then the style checker is wrong and the 
>> parameter should be allowed to be a RefPtr.
>> 
>> Feel free to file a bug and I'll get to it (-- it may take me a week or two 
>> at the moment).
> 
> It should definitely be allowed - it's a good way to represent "I need a T 
> and I won't take ownership, but I want to guarantee that my caller is holding 
> on to this."

Yes.

Also a good way to represent a RefPtr out parameter for a function with more 
than one return value. Also occasionally useful to make a function that 
conditionally takes ownership of something passed in.

    -- Darin

_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to