[fpc-pascal] Inline methods

Sven Barth pascaldragon at googlemail.com
Wed May 18 17:19:34 CEST 2016


Am 18.05.2016 14:43 schrieb "LacaK" <lacak at zoznam.sk>:
>> Additionally, it's possible that it's not possible to inline generic
routines in regular routines,
>
> It is not my case.
> I use this generic in another generic and then it is specialized in
interface section of same unit.
>
> Later this specialized object is used in another class type, which comes
after specialization.
> So this object is not used in regular procedure, but in methods of
another class ...
>
> 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
> But still does not inline ...

You need to call the function in another unit than where the specialization
is. Maybe provide a small (compileable) example that shows what you're
doing so that we can check that ourselves. It could also be that 2.6.x had
still problems there...

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160518/48258563/attachment.html>


More information about the fpc-pascal mailing list