[fpc-pascal] Default record const values

Sven Barth pascaldragon at googlemail.com
Sat Nov 10 10:55:44 CET 2018


Am Sa., 10. Nov. 2018, 10:06 hat Ryan Joseph <ryan at thealchemistguild.com>
geschrieben:

> Should’t this work? This would be a good way to set default record values
> but it doesn’t seem to be supported.
>

TMyRecord is not yet completely parsed. There could be another field
located behind the "default" constant. Thus using the type of the record
aside from Pointers and method parameters and result is not allowed.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20181110/f311cf4a/attachment.html>


More information about the fpc-pascal mailing list