[fpc-pascal] Default record const values

Sven Barth pascaldragon at googlemail.com
Sun Nov 11 23:06:44 CET 2018

Am 10.11.2018 um 09:35 schrieb Ryan Joseph:
> Should’t this work? This would be a good way to set default record values but it doesn’t seem to be supported.
> type
> 	TMyRecord = record
> 		public
> 			a: integer;
> 			b: string;
> 		const
> 			default: TMyRecord = (a: 100; b: 'foo');
> 	end;
The compiler now correctly rejects such declarations with a "Type is not 
completely defined error".


More information about the fpc-pascal mailing list