[fpc-pascal] Constants in generics

Ryan Joseph ryan at thealchemistguild.com
Thu Jan 3 04:32:37 CET 2019



> On Jan 2, 2019, at 8:25 PM, Alexander Shishkin via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> This is not consistent with constraints. Should be ";" after T.
> 
> And what about following examples?
> 

The semicolon is only needed following a generic parameter which is constrained. This was the normal behavior before constants were introduced.

generic TMyRecord1<T: TObject; const U: integer> = record


Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list