April 25, 2013 [Issue 9986] New: ModuleInfo.importedModules doesn't work | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from Timothee Cour <timothee.cour2@gmail.com> 2013-04-24 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: ------- |
Copyright © 1999-2021 by the D Language Foundation