digitalmars.D.bugs - [Issue 3504] New: [module] import foo: *; should be supported if imports are static by default
- d-bugmail puremagic.com (22/22) Nov 13 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3504
- d-bugmail puremagic.com (20/20) Nov 14 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3504
- d-bugmail puremagic.com (10/10) Feb 13 2012 http://d.puremagic.com/issues/show_bug.cgi?id=3504
http://d.puremagic.com/issues/show_bug.cgi?id=3504 Summary: [module] import foo: *; should be supported if imports are static by default Product: D Version: future Platform: Other OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: llucax gmail.com PST --- This is complementary to bug 3503 (make imports static by default). If that is the case, it would be a good idea to provide a way to have the old behavior, since it can be useful for a small set of applications (like small scripts). A proposed syntax could be: import foo: *; -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 13 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3504 PST --- Here is an example on how this should work with modules and packages: mod.d: void f() {} pkg/a.d: void f() {} pkg/pkg.d: void f() {} x.d: import mod: *; import pkg: *; void main() { f(); // mod.f a.f(); // pkg.a.f pkg.f(); // pkg.pkg.f } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 14 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3504 dawg dawgfoto.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dawg dawgfoto.de Resolution| |WONTFIX -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 13 2012