List of DMD dependency issue (which would be sloved by a task based system)
Mr T.
tee at invalid.io
Fri Dec 4 07:20:38 UTC 2020
Here's one *not* depending on declaration order, an ambiguity bug:
----------------------------------
// main.d
import ma;
import mb;
immutable X = Y; // no error!
int main() {
return 0;
// return Y; // error: ma.Y conflicts with mb.Y
}
----------------------------------
module ma;
enum Y = 48;
----------------------------------
module mb;
import main;
//static if (true) // main.d: error on X: ma.Y conflicts with
mb.Y
static if (X == 48) // no error!
enum Y = 64;
----------------------------------
More information about the Digitalmars-d
mailing list