allocate array with new
Jonathan M Davis
jmdavisProg at gmx.com
Tue May 15 11:19:51 PDT 2012
On Tuesday, May 15, 2012 15:05:30 Joseph Rushton Wakeling wrote:
> On 15/05/12 11:43, Jonathan M Davis wrote:
> > No. _Never_ use delete. It's going to be deprecated.
>
> What if you turn the GC off?
If you want to be doing manuabl memory management, then you use malloc and
free. new _always_ uses the GC. delete is going to be _removed from the
language_, so it's not an option.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list