![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm trying to decipher the GetPointer example, but I can't figure out the following part.
(1)
Is it correct to recognize that a pointer variable (CImte *m_next) in a class does not change its value even if it is referenced by an instance of the same class type? (Yellow marker part)
However, this leaves the question of which key is the key of the associative array.
The reason is that the object descriptor is stored in m_items so that the reverse order of object creation is achieved with m_items=m_items.Next(); in the Destroy method.
(2)
Class type* method name in the class (CItem *Next()) is a method that is not a basic data type, so I don't understand what it means. (Blue marker part)
How should I interpret it?
(3)
In the above script (red marker part), the argument of the InsertTobegin method is (class type * variable name), so It seems to me that you are passing a pointer, is there any mistake in this perception?
If there is no problem with recognition, does this mean that it is okay to pass pointers, although the notes on the relevant page mention this?