www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14555] New: ModuleInfo should weakly link against classes

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: nobody puremagic.com
          Reporter: code dawg.eu

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.

--
May 07 2015