Amir Yacoby: That's correct. Btw, there's another interesting use for this lib that crossed my mind. You can pass to functions/methods any combination of parameters with default values (not restricted to the end of parameters list)
*-in that case it is better to give the default positive value in the function method itself (for parm2=5.1):
Which allows to call without the caller knowing the actual default value of the 2nd parameter.
That made me think of another possible use... Set a variable to none by reference and also set an entire array to none.
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.
Форум по трейдингу, автоматическим торговым системам и тестированию торговых стратегий
Ошибки, баги, вопросы
fxsaber, 2018.10.29 21:40
That's correct.
Btw, there's another interesting use for this lib that crossed my mind.
You can pass to functions/methods any combination of parameters with default values (not restricted to the end of parameters list)
*-in that case it is better to give the default positive value in the function method itself (for parm2=5.1):
Which allows to call without the caller knowing the actual default value of the 2nd parameter.
That made me think of another possible use... Set a variable to none by reference and also set an entire array to none.