
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
Many compilers will not warn by default, but will warn when using the most recommended switches for assisting with code quality (eg 'lint' )
So its not a bug, and not a big problem, because MQL4 doesnt mix Booleans and integer types, like C does. its more of a problem with languages that acccept 0 and !0 as false and true.
Neither JAVA compiler warns you in this case. Assignment inside expression is not considered as a good programming technique, but it is part of the language specification. Nevertheless Languages like JAVA have powerful editors, which let you set custom messages coming from their parser.