[fpc-pascal] How to instantiate a public type in a generic class

Sven Barth pascaldragon at googlemail.com
Tue May 26 09:38:55 CEST 2015

Am 26.05.2015 01:20 schrieb "luciano de souza" <luchyanus at gmail.com>:
> But, say me: is the problem I faced related to 2.4 version? In newer
> version, would it be possible to use something like I have proposed or
> will the same behviour be maintained?

No, because there is no way for the compiler to know that the type
parameter is a type that contains a type names TEntities. While newer
versions /do/ support constraints they can not do this (though I do have
ideas to extend the capabilities of constraints, but don't expect anything
in the near future).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150526/cf596e6b/attachment.html>

More information about the fpc-pascal mailing list