www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - error message

Given this two files (which I know they're wrong):

---------------- a.d
import b;

static this ()
{
    printf("a\n");
}

void main ()
{
}

---------------- b.d
import a;

static this ()
{
    printf("b\n");
}


Walter, would it be possible to have the error include both offending modules? 
And even more, to detect it at compile time?

"Error: circular initialization dependency with module a"

-----------------------
Carlos Santander Bernal 
Nov 13 2004