Am Sa., 10. Nov. 2018, 12:44 hat Ryan Joseph <r...@thealchemistguild.com> geschrieben:
> 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. > It's not entirely parsed by the time the constant is declared. That is simply illegal code. > Also, why does it work to do > > begin > r := TMyRecord.default; > > in the main block? > It's not possible to use typed constants as initializers for variables. Regards, Sven
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal