There is a LOT the compiler could check at compile time but doesnt! Not so much a bug as an ommision I guess.
Mq4 has function prototypes but doesnt seem to use them effectively for compile time checking (apart from # of arguments) but just tries to cast everything at runtime.
If I stick with Mq4 I'll be tempted to see if there was some way to write a lint program for more checking... in the mean time one just has to be careful!
fx1.net:
May happen with the mql4/5 unified compiler.
Maybe its good to check such errors by compile time?
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
compiles well on compile time, but throws error on runtime:
EURUSD,H1: invalid double number as parameter 1 for 'DoubleToStr' function
EURUSD,H1: +++++ init done
EURUSD,H1: loaded successfully
Maybe its good to check such errors by compile time?