Discussion of article "The Basics of Object-Oriented Programming" - page 4

 
wulidancing:
Now I also have a memory leak (example 1 - no, example 2 - yes). But it should not be. Nothing helps. Write about it to Service Desk (link in you profile).
 
Integer:
Now I also have a memory leak (example 1 - no, example 2 - yes). But it should not be. Nothing helps. Write about it to Service Desk (link in you profile).
I have sent a request to the Service Desk.  Thanks again, I am curious as to what the problem is.
 
wulidancing:
I have sent a request to the Service Desk.  Thanks again, I am curious as to what the problem is.

Here is the service desk message:

 

 

Support Team 2013.02.07 11:18
Status: Open Closed
Thank you for your message. Bug is fixed, please wait for updates.

In the current build of the terminal (756) You can fix this by adding a string type member to the class CName. 

 
Dmitry, thank you! The main thing is that you managed to show the principle clearly, we'll figure out the details ))))
 

I have read all the articles about OOP, but only after this one I realised how to do it for MQL5.

5+

 
I apologise for the primitiveness of the question, but I am very curious just what is the hidden meaning in naming fields with the prefix "m_"?
 
thejobber:
I apologise for the primitiveness of the question, but I'm very curious just what is the sacred meaning of naming fields with the prefix "m_"?
There is no sacral meaning. The m_ prefix makes it easier to divide all variables into those that are class members and those that are not. m_ is an abbreviation for member
 
thank you
 
Thanks for the article! A lot of things have become clearer.
 
This is the best article, to the Author thank you !