depreciated function delete

alik mammadov.ali at ideal.az
Fri Jan 18 20:48:14 UTC 2019


Hi there. as you know delete function is depreciated. so I tried 
to use the __delete function for the code below:

if (this.parse_buffer.length > this.parse_size)
			{
				__delete(this.parse_buffer);
				this.parse_buffer.length = this.parse_size;
			}


but in return after I compile code I get the error like : 
Undefined identifier.
when I use destroy instead I don't get any errors. but I want to 
use __delete because of the garbage collector as it frees up the 
memory

thanks in advance.


More information about the Digitalmars-d-learn mailing list