Download MetaTrader 5
To add comments, please log in or register
We have launched Spanish and Portuguese versions of the website. Try them!
Luis
226
Luis 2015.02.12 12:38 

Is that possible? Im talking about the same object.

Greetings.

whroeder1
13976
whroeder1 2015.02.12 13:45  
You never call a destructor. If you really need it, have the destructor call a function, and the constructor can also.
hji
26
hji 2015.02.14 06:16  
Yes,why not?
Ovo Cz
2987
Ovo Cz 2015.02.14 08:38  
hji:
Yes,why not?
Could you write down a line, with which you call the destructor, please?
whroeder1
13976
whroeder1 2015.02.14 14:36  
hji: Yes,why not?
The destructor is called when an object goes out of scope.
{
   object O; // Object is alive
   ~O;       // Kill the object?
   O is still visible here. Is it alive, is it dead, - it's a zombie!
}
Luis
226
Luis 2015.02.17 16:35  
Thank you!
/
To add comments, please log in or register