https://issues.dlang.org/show_bug.cgi?id=14555
Issue ID: 14555
Summary: ModuleInfo should weakly link against classes
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
Currently all classes of a module are dragged into a statically linked binary
because ModuleInfos contain a list of all declared classes (for
Object.factory).
This linkage should be done weakly instead.
This does not affect shared libraries because those always contain all
declarations.
--