http://d.puremagic.com/issues/show_bug.cgi?id=5375

           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
        AssignedTo: s...@invisibleduck.org
        ReportedBy: michal.min...@gmail.com


--- Comment #0 from Michal Minich <michal.min...@gmail.com> 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(cm.name)(" -> ");
> }
> println(cycleModule.name);
> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to