PLO. Application issues - page 19

 

OK, I'll write that down: the design is acceptable. Thank you,marketeer, TheXpert!

 
TheXpert:

So that's exactly the problem with the questioner.

It's just the little things...

No, the question was how the "TimeCurrent()" function call was written without a semicolon immediately after it and it works. It was like this "CCC(void) : start(TimeCurrent();) {}" - as it is described in the documentation (I hadn't read it in this place, though ;-) ).
Документация по MQL5: Основы языка / Функции / Вызов функции
Документация по MQL5: Основы языка / Функции / Вызов функции
  • www.mql5.com
Основы языка / Функции / Вызов функции - Документация по MQL5
 
marketeer:
... Like this "CCC(void) : start(TimeCurrent();) {}" - as it is written in documentation (I didn't read it in this place ;-) ).
:) https://www.mql5.com/ru/docs/basis/operators/expression
Документация по MQL5: Основы языка / Операторы / Оператор-выражение
Документация по MQL5: Основы языка / Операторы / Оператор-выражение
  • www.mql5.com
Основы языка / Операторы / Оператор-выражение - Документация по MQL5
 

papaklass:
 А разве в данной конструкции TimeCurrent() не является формальным параметром? 

Thank you, I've already realised from marketeer's input that I'm really slow. I myself use some functions as parameters for other functions. And I was confused by correct initialization of class members. I even sketched out the check code:

void OnStart()
  {

   class CCC
     {
   public:
      datetime          startCurrent,startServer;
                        CCC(void) : startCurrent(TimeCurrent()),startServer(TimeTradeServer()) {}
                       ~CCC(void) {}
     };

   CCC ccc;
   Print("startCurrent=",ccc.startCurrent);
   Print("startServer =",ccc.startServer);
  }