Ryan Joseph <generic...@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@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

>
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to