[Issue 9986] ModuleInfo.importedModules doesn't work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 16 04:37:42 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=9986

Richard Cattermole <alphaglosined at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |alphaglosined at gmail.com
         Resolution|---                         |WONTFIX

--- Comment #2 from Richard Cattermole <alphaglosined at gmail.com> ---
importedModules is emitted based upon need.

It is used for module constructors being called in the right order.

The output right now is:

```
["std.array", "core.memory", "core.internal.array.utils"]
```

Unfortunately, you cannot use this for reflection purposes, as ModuleInfo is
not always emitted (its bloat usually).

--


More information about the Digitalmars-d-bugs mailing list