Am 01.03.2012 12:29 schrieb "Lukasz Stafiniak" <lukst...@gmail.com>:
>
> Why are type-parametric definitions called generics in Pascal? It
> seems to me their semantics is like templates in C++, not like
> generics in Java/C# (or ML languages).

They are named generics, because they are "generic" as in "can be used for
everything". We do not need to follow the naming of other languages. Also
there is the possibility that FPC's generics might be optimized a bit for
inheritable types (class, object, interface) once they are feature
complete. Then they would behave more like Java generics for such types.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to