[fpc-pascal] Generics vs templates

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jan 8 12:08:38 CET 2018


On Mon, 8 Jan 2018 14:19:42 +0700
Ryan Joseph <ryan at thealchemistguild.com> wrote:

> I was talking with a c++ developer who explained how templates are implemented in c++ and how use some recursive method which causes them to totally murder compile times.
> Having just started to use generics in FPC myself I was curious if FPC suffers from the same problem of slow compile times?

C++ templates are Turing complete. FPC generics are not.

https://en.wikipedia.org/wiki/Template_metaprogramming

Mattias



More information about the fpc-pascal mailing list