DMD supports ranges, but druntime can't see them?

Mike Franklin slavo5150 at yahoo.com
Thu May 23 13:12:57 UTC 2019


On Thursday, 23 May 2019 at 13:01:58 UTC, Atila Neves wrote:

> If the linker does its job, does it matter that individual 
> object files are larger?

Yes, my understanding is that the final binary would only have a 
single copy of whatever templates were instantiated.  However, 
there is a danger for template bloat if their are too many 
template permutations based on type or other compile-time factor. 
  For example, if the authors of druntime create large functions 
templated on type without factoring out the type-independent code 
into smaller functions.  Then template bloat could become a 
problem.  It's just something that needs to be carefully 
monitored if everything in the runtime is to be a template.

Mike


More information about the Digitalmars-d mailing list