Summary: local imports are underdocumented
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to