On 10/21/2015 12:36 PM, Brad Anderson wrote:
I don't understand why reference semantics would be implemented by the
container themselves though. Why not a general purpose RC! (or
RefCounted! if the current design is deemed sufficient) that can apply
to anything, including containers?

Two reasons:

1. A generic RC wrapper cannot be made @safe (or at least I don't know how).

2. A container designed for RC can make advantageous layout decisions.


Andrei

Reply via email to