[fpc-pascal] Constants in generics

Ryan Joseph ryan at thealchemistguild.com
Tue Nov 27 14:35:50 CET 2018



> On Nov 27, 2018, at 8:11 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> We can add a new message that says "type id or untyped constant expected". But if it correctly errors right now, we can leave it be for now. 
> 

Fine by me.

> You did read the part about the generic and the specialization being located in two different units? ๐Ÿ˜‰

Oops. This still works so I guess itโ€™s ok.

program gc_ppu;
uses
	gc_types_unit;

var
	a: specialize TList<Integer,10>;
begin
	a.dothis('hello');
end.

Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list