How to get all modules in a package at CT?
evilrat
evilrat666 at gmail.com
Fri Oct 6 05:36:49 UTC 2023
On Thursday, 5 October 2023 at 22:32:36 UTC, mw wrote:
>
> So ModuleInfo contains all the modules (transitive closure)
> built into the current binary that is running?
>
> Is there document about this ModuleInfo?
>
> I only find Struct object.ModuleInfo
>
> https://dlang.org/library/object/module_info.html
>
> Which seems different.
It is opApply() overload on that struct that works with foreach
or custom delegate.
Since it calls internal stuff there is no point messing up with
that.
https://github.com/dlang/dmd/blob/d06917a8327027f94b0be0b8e54e47a51ba34134/druntime/src/object.d#L2441
More information about the Digitalmars-d-learn
mailing list