A Refcounted Array Type
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Mon Feb 23 17:13:04 PST 2015
On 2/23/2015 5:01 PM, Max Klyga wrote:
> I thought that delete is deprecated, yet here Walter himself promotes a solution
> that uses it.
> Can we *PLEASE* finally deprecate things that are supposed to be deprecated and
> remove things that are supposed to be removed?
That isn't the point. I could have well have used malloc/free, but I wanted the
code example to be about how to make a memory safe ref counted container, not
about the details of memory allocation. It demonstrates how 'return ref' is to
be used.
More information about the Digitalmars-d
mailing list