On Tuesday, June 04, 2013 00:12:30 Walter Bright wrote: > On 6/3/2013 11:49 PM, deadalnix wrote: > > We can do it in a D specific way (using our own metadata and providing an > > optimization pas for LLVM) but most likely we won't even need to as the > > same feature is planned to be added to clang and we can most likely > > simply reuse clang's metadata. > > There is another way. > > D can be made aware that it is building an executable (after all, that is > why it invokes the linker). If you shove all the source code into the > compiler in one command, for an executable, functions that are not > overridden can be made final.
Shared libraries kill that - especially those that get loaded explicitly rather than linked to. They could have classes which derive from classes in the executable which are never derived from within the executable itself. - Jonathan M Davis
