[fpc-pascal] Implicit generic specializations
Sven Barth
pascaldragon at googlemail.com
Sun Dec 2 16:53:02 CET 2018
Am So., 2. Dez. 2018, 15:28 hat Ryan Joseph <ryan at thealchemistguild.com>
geschrieben:
>
>
> > On Dec 2, 2018, at 8:11 PM, Sven Barth via fpc-pascal <
> fpc-pascal at lists.freepascal.org> wrote:
> >
> > Also the idea should be that a non-generic routine takes precedence.
> >
>
> I did this wrong then because the generic takes precedence now. Why
> shouldn’t the generic take precedence though? It comes after so you think
> it would hide the first one. The symbol “DoThis” is now a generic dummy
> (compiler term) so I didn’t know you could even get access to the first
> DoThis.
>
Specialization is expensive. If specialization can be avoided, it should
be. Not to mention that the non-generic one could have more optimized code.
Though to be sure I'll test with Delphi, we'll have to be compatible there
anyway.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20181202/d3d2540d/attachment.html>
More information about the fpc-pascal
mailing list