Errors, bugs, questions - page 1919
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
Can you tell me if mql5 can comment on the error output during compilation like in php ?
Can you tell me if mql5 can comment on the error output during compilation like in php ?
GetLastError()? If not, what format do you want to see?
well in php there is @variable = ....
and the error output is commented - convenient for simple errors at compile time (e.g. for type inconsistencies during conversion to string)
well, in php there is @variable = ....
and the error output is commented - convenient for simple compile-time errors (e.g. for type inconsistencies during conversion to string)
In mql you have to check the error code explicitly (at runtime), and at compile time a warning will pop up, if there is a possible error in type conversion.
This is how I want to partially disable selective, error output at compile time.
So, I want to partially disable the error output at compile time.
Ambiguity
At the same time, without protected: (*) - compiles without errorsExpected: same behaviour both with and without protected: (*) string
Optional: C++ does not compile both cases
Ambiguity
At the same time, without the protected: (*) string - it compiles without errorsExpected: Same behavior both with and without protected: (*) string
"Predecessor" does not need to see protected/private fields.
If you want B::f() to be defined in A::f(), you will have to invent something in this case.Optional: C++ does not compile both cases
If you add
struct B;
at the beginning of the code, one of the two cases should compile. maybe the mql compiler is so smart that it adds the missing forward declaration itself?