<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Am Sa., 10. Nov. 2018, 12:44 hat Ryan Joseph <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>> geschrieben:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It's not entirely parsed by the time the constant is declared. That is simply illegal code. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Also, why does it work to do<br>
<br>
begin<br>
r := TMyRecord.default;<br>
<br>
in the main block?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It's not possible to use typed constants as initializers for variables.</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"></div></div></div>