Compile-Time module info

2012-07-22 Thread Chris NS
Is there any means to get meaningful moduleinfo at compile time, specifically a list of the local classes of a given module? __traits(allMembers, mod) doesn't work: "inverse.d(109): Error: import data has no members". I was hoping that something along these lines would be possible in CTFE:

Re: Compile-Time module info

2012-07-22 Thread Philippe Sigaud
On Sun, Jul 22, 2012 at 9:31 AM, Chris NS wrote: > Is there any means to get meaningful moduleinfo at compile time, > specifically a list of the local classes of a given module? > __traits(allMembers, mod) doesn't work: "inverse.d(109): Error: import data > has no members". > > I was hoping that s