> On Nov 30, 2019, at 12:58 PM, Sven Barth via fpc-pascal
> wrote:
>
> This can't work. ClassType is of type TClass and TClass.Create calls
> TObject.Create, *not* the constructor of your list type, cause the
> constructor chain is not virtual.
>
> What you can do is this:
>
> === code beg
> On Nov 30, 2019, at 12:58 PM, Sven Barth via fpc-pascal
> wrote:
>
> This can't work. ClassType is of type TClass and TClass.Create calls
> TObject.Create, *not* the constructor of your list type, cause the
> constructor chain is not virtual.
Ok, so if the constructor was virtual this wou
> On Nov 30, 2019, at 1:04 PM, Sven Barth via fpc-pascal
> wrote:
>
> Well, if you want you can find any place where the _SPECIALIZE and _GENERIC
> tokens are used and checked against mode Delphi to check against a new
> modeswitch instead ("GENERICKEYWORDS") which must be enabled by default