RCArray is unsafe

via Digitalmars-d digitalmars-d at puremagic.com
Wed Mar 4 03:37:48 PST 2015

On Wednesday, 4 March 2015 at 10:50:54 UTC, Walter Bright wrote:

> How do you type an an array of pointers with different owners?

You mean an array of pointers to objects with different owners? 
The array is the owner of the objects it points to. Or else it 
should be @trusted?

> How do you deal with the combinatoric explosion of template 
> instantiations with all those different ownership types?

Type erasure.

More information about the Digitalmars-d mailing list