MQL5 pointer vs C++ pointer

Overweight
185
Overweight  
What is the difference between MQL5 pointer and C++ pointer?
William Roeder
24592
William Roeder  
MTx does not have pointers! It only has handles to class objects. GetPointer returns a handle. You can not get a pointer to POD. You can not increment a handle to point to the next array element.
Overweight
185
Overweight  

What about new operator?  MQL vs C++

MyClass * p1 = new MyClass;   //C++
MyClass * p1 = new MyClass(); // MQL5
Paul Anscombe
5807
Paul Anscombe  
Overweight:

What about new operator?  MQL vs C++

creates an object pointer 

not to be confused with a memory pointer 

William Roeder
24592
William Roeder  
Overweight: What about new operator?  MQL vs C++

Perhaps you should read the manual.
   How To Ask Questions The Smart Way. 2004
      How To Interpret Answers.
         RTFM and STFW: How To Tell You've Seriously Screwed Up.

In contrast to C++, the hobject variable from example above is not a pointer to memory, but rather an object descriptor.
          Object Pointers - Data Types - Language Basics - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5