[fpc-pascal] How to instantiate a public type in a generic class
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...
More information about the fpc-pascal