MQL5 The compiler does not distinguish between a class and a pointer to it - page 8

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 don't understand why not prohibit implicit copying for object types? What good would it do? Objects that are actually objects and not OOP-disguised structures that can be conveniently passed by reference, don't have logic reduced to the mere content of fields anyway. That is, copying without explicitly overloading the = operator in the class just isn't necessary.
Where is*?
It's S. Do you want a PL?
Ilya.
In MQL
And what does it lead to in MQL? Can you show me a simple example?
Why wouldn't it work? There are * and & operators for converting to what's required.
It didn't work for me (in case it's banned)
And what does it lead to in MQL? Can you show me with a simple example?
I couldn't do it (in case they ban it)
Shit, guys, what are you doing?
Shit, guys, what are you doing?
Area of visibility...
Shit, guys, what are you doing?
A hundred plus for you, man. Either I've been tricked by some demon when I've tried this before, or one of the latest builds has added it.
A hundred plus for you, man. Either I've been tricked by some demon when I've tried this before, or one of the latest builds has added it.
Forum on trading, automated trading systems and strategy testing
The MQL5 Compiler does not distinguish between a class and a pointer
Alexey Navoykov, 2019.01.12 20:59
What the hell are you guys doing?
A a; A *p; * p = a;
I was sure there is no such a thing in MQL! I wonder where did the legs grow in my head...
I wonder if there's even one example of this in the QB or Documentation? Didn't bluntly notice....