[Webkit-unassigned] [Bug 233384] Ref<T> should support indirection operator *

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 19 21:53:13 PST 2021


--- Comment #4 from Jean-Yves Avenard [:jya] <jean-yves.avenard at apple.com> ---
(In reply to Ryosuke Niwa from comment #3)
> I'm pretty this is an intentional design choice because we wanted it to act
> like a reference. 

Indeed that was the intent, but the lack of operator.() in C++ makes it that you have to use -> to dereference it; as such, in practice it works like a pointer.

> I actually don't understand why we want operator *. Why would operator T&
> not be sufficient?

Yes, Alex made a good point there.

As Geoffrey mentioned, currently there's a mismatch between intent and actual usage.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211120/4e37141d/attachment-0001.htm>

More information about the webkit-unassigned mailing list