Idea #1 on integrating RC with GC

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Feb 5 11:39:43 PST 2014


On 2/5/14, 10:56 AM, Adam D. Ruppe wrote:
> On Wednesday, 5 February 2014 at 18:25:31 UTC, Andrei Alexandrescu wrote:
>> Allow people to clean up memory allocated by Phobos.
>
> A better solution would be for Phobos to allocate less memory. Instead
> of returning strings, accept output ranges that receive it.

You do figure that complicates usage considerably, right?

> Make slices
> work as output ranges well with control over growing.
>
> (We can still offer the simple string returning functions for convenience)

I was thinking RCSlice would be a better alternative.


Andrei


More information about the Digitalmars-d mailing list