mt4 build 1066 - page 2

 
James Cater: I have found a regression error with initialisation order of static variables within functions.This was working in build 1065.
  1. It's not a regression error, it's a compiler error. Documentation says
    A static variable can be initialized by a constant or constant expression
    They changed it to allow some non-const like Close[] or Market info, and broke everything. You should not have coded that and the compiler should have rejected it.
  2. I would have coded it
       static int result =0; if(result==0) result = TestBrokenStatic();


 
whroeder1:
  1. It's not a regression error, it's a compiler error. Documentation saysThey changed it to allow some non-const like Close[] or Market info, and broke everything. You should not have coded that and the compiler should have rejected it.
  2. I would have coded it


A simple release note making us aware of the change might have been nice (especially as they are now forcing Market products to use the 1066 build)
 
James Cater:
A simple release note making us aware of the change might have been nice
(especially as they are now forcing Market products to use the 1066 build)

I think this is the single biggest shortcoming - no clear and concise documentation of changes with each release. Without this, we are left to figure things out through trial and error.
Reason: