<p>Am 19.05.2016 08:52 schrieb "LacaK" <<a href="mailto:lacak@zoznam.sk">lacak@zoznam.sk</a>>:<br>
><br>
><br>
>><br>
>> >> Additionally, it's possible that it's not possible to inline generic routines in regular routines,<br>
>> ><br>
>> > It is not my case.<br>
>> > I use this generic in another generic and then it is specialized in interface section of same unit.<br>
>> ><br>
>> > Later this specialized object is used in another class type, which comes after specialization.<br>
>> > So this object is not used in regular procedure, but in methods of another class ...<br>
>> ><br>
>> > I did also attempt to put all this stuff (with generics and specializations) into separate unit and then I have used this unit ( in interface section ) in "main" unit<br>
>> > But still does not inline ...<br>
>><br>
>> You need to call the function in another unit than where the specialization is.<br>
>><br>
> Yes I do it so (in attached example it is in one unit, but in my real generic and specialization is in separate unit, that is used by another in interface section)<br>
><br>
><br>
>> Maybe provide a small (compileable) example that shows what you're doing so that we can check that ourselves.<br>
>><br>
> Attached</p>
<p>Moving GT and T1 to a separate unit results in inlined code, as expected (tested with 2.6.4, 3.0.0 and 3.1.1), also if T2 is in another separate unit.</p>
<p>Regards,<br>
Sven</p>