[fpc-pascal] Default record const values

Ryan Joseph ryan at thealchemistguild.com
Sat Nov 10 12:14:17 CET 2018

Not quite understanding how that’s not entirely parsed by the time you assign outside of the record. Even so I would expect it to copy what the const was able to capture, fully parsed or not.

Also, why does it work to do

  r := TMyRecord.default;

in the main block?

> On Nov 10, 2018, at 4:55 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 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. 

	Ryan Joseph

More information about the fpc-pascal mailing list