www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9042] New: Self-import with mixin

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

           Summary: Self-import with mixin
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: freeslave93 gmail.com



This code will cause infinite compilation if name of file is "hello.d"

int main(string[] args)
{
    mixin(import("hello.d")); //import itself
    return 0;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 17 2012