[fpc-pascal] Constants in generics

Alexander Shishkin alexvins at mail.ru
Thu Jan 3 04:25:10 CET 2019


03.01.2019 4:29, Ryan Joseph пишет:
> 
> type
> 	generic TMyRecord_Int<T, const U:integer> = record
> 	end;
> 

This is not consistent with constraints. Should be ";" after T.

And what about following examples?

type
  	generic TMyRecord1<const T, const U> = record
  	end;

type
  	generic TMyRecord2<const T; const U> = record
  	end;

type
  	generic TMyRecord3<const T, U> = record
  	end;

type
  	generic TMyRecord4<const T; U> = record
  	end;



More information about the fpc-pascal mailing list