[fpc-pascal] Generic type conflicts

Ben Grasset operator97 at gmail.com
Fri Nov 8 17:18:22 CET 2019


On Fri, Nov 8, 2019 at 11:04 AM Jonas Maebe <jonas at freepascal.org> wrote:

> You can't. It's the main difference between C++ templates, which is a
> Turing-complete programming language, and generics, which is simply a
> parametrising mechanic.
>

I know what you mean, and I'm aware, but you actually kind of can to the
fairly straightforward extent that I'm concerned about with Ryan's patch
(i.e. simply passing constant results as constraints rather than function
parameters.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20191108/10bc1da4/attachment.html>


More information about the fpc-pascal mailing list