digitalmars.D.bugs - [Issue 9986] New: ModuleInfo.importedModules doesn't work
- d-bugmail puremagic.com (38/38) Apr 24 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9986
http://d.puremagic.com/issues/show_bug.cgi?id=9986 Summary: ModuleInfo.importedModules doesn't work Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: druntime AssignedTo: nobody puremagic.com ReportedBy: timothee.cour2 gmail.com 20:07:04 PDT --- running this gives ["std.stdio"] instead of: ["std.stdio", "std.algorithm", "std.traits"] Is that intended? bug? also it's in fact in ModuleInfo.Old so is that deprecated? If so it should be marked as such. How else to get same functionality? ---- module bugs.bug_2013_04_24_19_55_21; import std.algorithm; import std.stdio; import std.traits; void main(){ foreach(a; ModuleInfo) { if(a.name!=moduleName!a) continue; auto b=a.importedModules; writeln(b.map!`a.name`); } } ---- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 24 2013