How to delete dynamic array ?

Ilya Yaroshenko ilyayaroshenko at gmail.com
Sun Dec 29 22:52:19 PST 2013


case 1:
  delete ar;
case 2:
  ar.destroy();
case 3:
  GC.free(ar.ptr);
case 4:
  ar = null;// (assumed that ar is only one pointer to the same 
array)

What is the difference?

How to free memory to the system immediately?

___________________________
Thank You & Best Regards,
Ilya


More information about the Digitalmars-d-learn mailing list