[Issue 9986] New: ModuleInfo.importedModules doesn't work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 24 20:07:06 PDT 2013
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 at puremagic.com
ReportedBy: timothee.cour2 at gmail.com
--- Comment #0 from Timothee Cour <timothee.cour2 at 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: -------
More information about the Digitalmars-d-bugs
mailing list