In the latter case, the module needs to save all needed information forri, 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)