[fpc-pascal] generic proc inference
Sven Barth
pascaldragon at googlemail.com
Tue Oct 8 17:32:00 CEST 2019
Ryan Joseph <genericptr at gmail.com> schrieb am Fr., 4. Okt. 2019, 17:10:
>
>
> > On Oct 3, 2019, at 6:07 PM, Sven Barth via fpc-pascal <
> fpc-pascal at lists.freepascal.org> wrote:
> >
> > A patch for it by Ryan Joseph exists (
> https://bugs.freepascal.org/view.php?id=35261 ), but I've not yet found
> the time to review it.
> >
>
> I’m eager to use this also but it’s been sitting there for about 6 months
> now, and I don’t remember well, but I think it had some questionable design
> that Sven wasn’t sure about.
>
I checked again. The thing is that in the compiler overload handling is
done inside htypechk.tcallcandidates. Your patch weakens/changes that. So
you'll have to completely rethink your solution to fit it into
tcallcandidates (that should for example collect all suitable generics in
addition to the non-generic ones (if any)).
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20191008/39cabf92/attachment.html>
More information about the fpc-pascal
mailing list