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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Nov 20 00:04:52 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=233384

--- Comment #6 from Ryosuke Niwa <rniwa at webkit.org> ---
(In reply to Jean-Yves Avenard [:jya] from comment #4)
> (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.

Just because the presence of operator-> doesn't make it a pointer like. Ref::operator! works like T::operator! so it's not pointer-like in that regard for example. In fact, almost everything else doesn't behave like a pointer.

-- 
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/ed283050/attachment.htm>


More information about the webkit-unassigned mailing list