Reference counted containers prototype

Jacob Carlborg doob at me.com
Tue Dec 27 11:51:22 PST 2011


On 2011-12-27 02:09, Peter Alexander wrote:
> On 26/12/11 5:25 PM, Andrei Alexandrescu wrote:
>> (a) All interaction with the held object is done via opDispatch. In fact
>> opDispatch can be engineered to statically enforce no reference to the
>> held object escapes.
>
> I have a separate, but very much related concern:
>
> If the held object has a method with the same name as RefCounted (e.g.
> asConst) then how do you call the held object's method instead of
> RefCounted's method?

You can always call opDispatch directly.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list