Declaring Template Class Variables - page 4

 
Dominik Christian Egert #:
Arguably, you could say this applies to c/c++ as well, because windows or the OS destroys the process space. Still you will accumulate used memory over time, if you keep repeating this.

It's not a garbage collecting language like java. We, the coders do have to take care of such issues, and we should clean up, and not rely on the platform to do it for us. Especially when a software is running for prolonged time.


Of course you are right. But it's really hard to have such memory leak with MT4/MT5 when you get messages in the logs about them, I am not able to name that memory leak. You practically have to do it on purpose.

The point is there is no valid reason to not use pointers in MQL.

 
Alain Verleyen #:

Of course you are right. But it's really hard to have such memory leak with MT4/MT5 when you get messages in the logs about them, I am not able to name that memory leak. You practically have to do it on purpose.

The point is there is no valid reason to not use pointers in MQL.

Yes, I agree. I myself make use of mql "pointers" a lot and I think they are very helpful and flexible, especially compared to structs.

Only I am missing pointer arithmetic in mql.
Reason: