[Issue 3505] New: [module] static imports should be binded to the leaf module, not the fully qualified name

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 13 16:29:18 PST 2009


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

           Summary: [module] static imports should be binded to the leaf
                    module, not the fully qualified name
           Product: D
           Version: future
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: llucax at gmail.com


--- Comment #0 from Leandro Lucarella <llucax at gmail.com> 2009-11-13 16:29:18 PST ---
Now static imports uses full qualified module names:

  static import foo.bar.baz;
  foo.bar.baz.f();

It would be much nicer to avoid a lot of typing to make them bind to the leaf
module:

  static import foo.bar.baz;
  baz.f();

This removes a lot of clutter from static import and make renamed import almost
useless. I do this manually most of the time:

  import baz = foo.bar.baz;
  baz.f();

Which is clumsier.

This feature would be great specially if all imports are static by default (see
bug 3503).

-- 
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