Time for std.reflection

sclytrack sclytrack at thailand.com
Mon Nov 19 03:43:35 PST 2012


>> In the latter case, the module needs to save all needed 
>> information for
>> ri, so it should plant this:
>>
>> // inside std.algorithm
>> mixin(makeModuleInfoAvailableDynamically());
>>

Is there a way to get the current module at compile time?

__traits(allMembers, pkg.modulename)




More information about the Digitalmars-d mailing list