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".
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal