Suggestion to implement __traits(getImports, Scope)

captaindet via Digitalmars-d digitalmars-d at puremagic.com
Thu May 8 21:09:15 PDT 2014


On 2014-05-08 13:28, Yuriy wrote:
> Hello D community,
> What do you think of a new __traits(getImports, Scope), that returns a tuple of strings, which are imports made in a scope? If scope is a module, it will produce a tuple like ("std.conv", "std.traits").

by coincidence, i have use for this too. also thought __traits(allMembers, ...) would work. too bad it doesn't. is this a bug or expected behavior?

/det


More information about the Digitalmars-d mailing list