Why would mql5 move semantics? There's no need for such performance optimisation, especially since it's a virtual machine. What else do you need it for?)
On its own, mql5 is very different from C++, as well as fromC++98, and even more so from C++11/14/17, but its capabilities now completely cover the things you need to create an EA.
but its capabilities now fully cover the things you need to create an EA.
They covered those necessities even 6 years ago in the old MQL4, if you have any idea what the level of the language was in those days. We wrote EAs in it, and some still code in that archaic style. So everything is relative.
What other purpose would it be introduced for?)
This has been discussed for the last couple of pages of the thread.
How can the input parameters in a public function be private. Conflict of interest.
If this private parameter is to be used inside this function, it doesn't need to be declared as input, because it already exists.
If it's meant to be another variable, of course there will be a name conflict within the function with the existing private variable and so it needs to be called by a different name.
ZS It turns out it doesn't matter if it's i public or private. It's a trivial name conflict. Inside function f there will be uncertainty what i is - input parameter or global variable of parent class.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Why would mql5 move semantics? There's no need for such performance optimisation, especially since it's a virtual machine. What else do you need it for?)
On its own, mql5 is very different from C++, as well as fromC++98, and even more so from C++11/14/17, but its capabilities now completely cover the things you need to create an EA.
but its capabilities now fully cover the things you need to create an EA.
They covered those necessities even 6 years ago in the old MQL4, if you have any idea what the level of the language was in those days. We wrote EAs in it, and some still code in that archaic style. So everything is relative.
What other purpose would it be introduced for?)
It gives an error here:
It doesn't go like this:
This doesn't work either:
Attached is a script to reproduce the error, an empty script with a couple of lines of code as above.
Well, that doesn't make sense at all:
Class E doesn't deserve to be so popular.
It compiles without any errors.
Is it a compiler error?
Is it a compiler error?
Maybe an annoying formchanist talking about bullshit, distracting you from the serious stuff?
when you're in the midst of his enthusiasm, will you tell me then?
Is it a compiler error?
It's kind of logical.
How can the input parameters in a public function be private. Conflict of interest.
If this private parameter is to be used inside this function, it doesn't need to be declared as input, because it already exists.
If it's meant to be another variable, of course there will be a name conflict within the function with the existing private variable and so it needs to be called by a different name.
ZS It turns out it doesn't matter if it's i public or private. It's a trivial name conflict. Inside function f there will be uncertainty what i is - input parameter or global variable of parent class.
the question implied that we can't access the member because of privacy, but the name conflict is still shown by the compiler.
as I wrote, the pluses behave exactly the same, i.e. there is no error in the compiler and all is well.