<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ben Grasset <<a href="mailto:operator97@gmail.com">operator97@gmail.com</a>> schrieb am Mo., 15. Juli 2019, 22:57:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank" rel="noreferrer">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></blockquote></div></div><div dir="auto"><br></div><div dir="auto">That is exactly what is happening if you have a specialization in multiple units that don't know about each other. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>