October 06

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

1 2
Next ›   Last »