<div dir="ltr"><div dir="ltr">On Sat, Jul 13, 2019 at 9:02 PM Sven Barth via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">Not necessarily. If you have two units that don't know about each other that specialize the function with the same enum then you'd have two specializations already.</div></div></blockquote><div><br></div><div>Surely that only applies to what winds up in the PPUs for the units in question, if anything, though? As opposed to the object files and the final executable. Like, I don't see how it could possibly be the case that if two / three / four / e.t.c units all use Generics.Collections, and each one contains an instance of something like:</div><div><br></div><div>var IntList: TList<LongInt></div><div><br></div><div>that this means the resulting binary contains
two / three / four / e.t.c separate complete instantiations of TList for LongInt. You'd wind up with executables in the literal hundreds-of-megabytes range if that were so, even with optimizations / symbol stripping and so on activated.</div></div></div>