[Issue 23177] ModuleInfo is not exported on Windows
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 12 18:32:20 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23177
Richard Cattermole <alphaglosined at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #4 from Richard Cattermole <alphaglosined at gmail.com> ---
Unfortunately, my fix is nowhere near good enough.
Here is a code snippet that will fail, it will need to be added to dshell/dll
test in its main function (in some form).
```d
void main() {
import std.stdio;
foreach (m; ModuleInfo) {
writeln(m.name);
if (auto i = m.importedModules()) {
writeln(i);
stdout.flush;
foreach (j; i) {
writeln(" - ", j.name.ptr);
stdout.flush;
}
}
}
}
```
--
More information about the Digitalmars-d-bugs
mailing list