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

           Summary: local imports are underdocumented
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nob...@puremagic.com
        ReportedBy: timon.g...@gmx.ch


--- Comment #0 from timon.g...@gmx.ch 2012-01-20 11:59:23 PST ---
Local imports appear in the grammar, but their semantics is unspecified. For
example, DMD lets local imports hide local variables:

void main(){
    string[string] map;
    pragma(msg, typeof(map)); // "string[string]"
    {
        import std.algorithm;
        pragma(msg, typeof(map)); // "void"
    }
}

But the documentation does not say if this is valid or if it is a bug.

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

Reply via email to