![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
Will MetaLang understand that int a(), int a(int var), bool a() and double a() are different functions?
Will MetaLang understand that int a(), int a(int var), bool a() and double a() are different functions?
Yes.
They can. Clearly they can. I just don't see what that has to do with my question on the timeline and the answer to it.
It has everything to do with it. This is a clarification. Scripts and Expert Advisors can manage charts and graphical objects as they wish. But custom indicators cannot.
Yes.
? In C++ there is no return value overloading. Will there be one in MQL5?
? In C++ there is no overloading on the return value. In MQL5 there will be ?
That's up to Slava. But in my opinion, MQL5 also doesn't have overloading by the return value type.
? In C++ there is no overloading on the return value. Will there be one in MQL5?
No.
Will MetaLang understand that int a(), int a(int var), bool a() and double a() are different functions?
Bottom line -- functions number 1 3 and 4 will be counted as one due to the reasons mentioned above. 1 and 2 are different functions.
No.
Too bad :) ...
Total -- functions number 1 3 and 4 are counted as one for the reasons mentioned above. 1 and 2 are different functions.
now they are different functions, compile the code
int a()
{
return(0);
}
int a(int a)
{
return(a*2);
}
and make sure
Now these are different functions, please compile the code and see this
Compiled and verified.
'a' - function already defined and has a body *.*.mq4 (230, 5)
They are the same in MQL4. But they will be different in MQL5.
Compiled and verified.
'a' - function already defined and has a body *.*.mq4 (230, 5)
They are the same in MQL4. But they will be different in MQL5.
mistake in previous post NOT Different