Allocating structs with new?
div0
div0 at users.sourceforge.net
Sat Jul 10 12:55:49 PDT 2010
On 10/07/2010 18:04, Robert Jacques wrote:
> On Sat, 10 Jul 2010 10:01:52 -0400, div0 <div0 at users.sourceforge.net>
> wrote:
>
>> On 10/07/2010 07:31, Robert Jacques wrote:
>>
>>> As for delete and clear, the deprecation/transition is still in
>>> progress. clear exists, but delete is not deprecated yet.
>>
>> So what are we going to use instead? I have uses for delete.
>>
>
> clear is meant to be a safe version of delete.
Yeah I don't care about safe. Safe D can never happen at all for all I care.
If clear doesn't return the memory to the free list it's fecking useless
to me; I have a need for deterministic memory allocation.
If new D is going to require a GC it's no longer a systems programming
language and it's no longer either interesting or an appropriate
replacement for C++.
--
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
More information about the Digitalmars-d
mailing list