[Issue 5375] New: Detection of cyclic module imports provides error findings on console, instead of exception msg

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 25 11:28:20 PST 2010


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: sean at invisibleduck.org
        ReportedBy: michal.minich at gmail.com


--- Comment #0 from Michal Minich <michal.minich at 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: -------


More information about the Digitalmars-d-bugs mailing list