10class E {
20staticuint a,
30 b;
40staticlong c;
50 };
6070staticuint E::a = 1,
80 E::b = 2, //ошибка, хотя для обычных static вне класса и внутри функций - нормально (строки 110-130)90 staticlong E::c = 3; //не выдает ошибку, хотя после запятой сменился тип с int на uint100110staticuint d = 5,
120 e = 6, //нормально130staticlong f = 7; //ошибка - правомерно, после запятой сменился тип
I think that line 80 should not give an error, and line 90 should give an error, although it does not. That the order is not mixed up is confirmed by separate compilation respectively without line 80 and 90
Otherwise, different behavior for declarations in class (lines 70-80) and out of class (lines 110-130).
This?
And I was just looking in the MQL spreadsheet
And I was just looking in the MQL spreadsheet
I think that line 80 should not give an error, and line 90 should give an error, although it does not. That the order is not mixed up is confirmed by separate compilation respectively without line 80 and 90
Otherwise, different behavior for declarations in class (lines 70-80) and out of class (lines 110-130).
Like this, it's fine,
and this is an error, even though it was expected to be the other way roundI don't understand anything from the reference.
which link did you read?