Eliminate class allocators and deallocators?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Wed Oct 7 17:39:20 PDT 2009
Denis Koroskin wrote:
> On Thu, 08 Oct 2009 04:13:12 +0400, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>
>> Denis Koroskin wrote:
>>> I'm not sure you will convince people to use foo.recycle() instead of
>>> foo.delete(). Not only it's slower, I believe recycling an object
>>> works for hiding bugs: accessing a recycled object - obviously a bug
>>> - will no longer be detected.
>>
>> Is anyone under the illusion that today there's any detection going on?
>>
>> Andrei
>
> There is none, but it's possible. It's just not implemented.
It's not possible if you allow actual memory reuse! Now I'm not sure I
understand what you want.
Andrei
More information about the Digitalmars-d
mailing list