On 2/5/14, 12:20 PM, "Ola Fosheim Grøstad" <[email protected]>" wrote:
On Wednesday, 5 February 2014 at 20:04:31 UTC, Andrei Alexandrescu wrote:
I said it a couple of times, and it seems it bears repeating: the
charter of this is solely to create a slice type that takes care of
itself. What this is not is a general solution for managing internal
pointers or pointers to arbitrary objects.

Then I think this is starting in the wrong end of the problem space.
Slices are tiny dots in this picture.

I'm confused. Slices are the bulkiest allocation there is: chunks of contiguous data.

It would be better to have a RC compiler switch and version{} statements
in the libraries rather than having extensive special casing of RC/GC
vs pure GC types in user code.

I don't see where the extensive casing comes from. User code decides which way they want and they go for it. Simple aliases make certain decisions swappable.


Andrei

Reply via email to