[fpc-pascal] Two possible generics bugs

Ryan Joseph genericptr at gmail.com
Sun Dec 1 18:25:20 CET 2019

> On Nov 30, 2019, at 12:58 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> 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 would work as expected? I guess that make sense. We really need implicit function specialization already but I don't want to bog down your review process anymore than I have. Removing the generic keyword will at least make this a little nicer to work with in the mean time and that's low hanging fruit.

	Ryan Joseph

More information about the fpc-pascal mailing list