Summary: Detection of cyclic module imports provides error
                    findings on console, instead of exception msg
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime

--- Comment #0 from Michal Minich <> 2010-12-25 11:26:18 
PST ---
from object_.d:

> // print the cycle
> println("Cycle detected between modules with ctors/dtors:");
> foreach(cm; dtors[dtoridx..$])
> {
>    console(" -> ");
> }
> println(;
> throw new Exception("Aborting!");

for non-console application, it is hard to find what is happening, except
"Aborting!" (adding AttachConsole(-1) call is needed, moreover this function is
not included in druntime win bindings)

All the cycle printing text should be included in exception message. (I see no
problem printing it on console too)

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to