A feature request

bearophile bearophileHUGS at lycos.com
Fri Jun 27 04:09:25 PDT 2008


ÂÞÓÂ¸Õ Wrote:
> I recommend that in D2 add a new keyword gcnew for garbage collection heap allocation.    the default new and delete key word just for someone that want management the memory by themselves.
> I think we just using new for garbage collection memory allocation and for someone that using new for memory management by themeselvs will misleading!

In D the "default" is generally the safer way (that here is the GC way), this allows the programmer to put less bugs in the code.

Bye,
bearophile



More information about the Digitalmars-d mailing list