<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr">Mattias Gaertner <<a href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a>> schrieb am So., 20. Mai 2018, 17:58:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>[...]<br>
> === code end ===<br>
> <br>
> For constants the dynamic array constants adhere to the writable <br>
> constants switch $J. E.g. the following will result in an exception:<br>
> <br>
> === code begin ===<br>
> <br>
> {$J-}<br>
> const<br>
> Test1: array of LongInt = (1, 2, 3);<br>
> begin<br>
> Test1[1] := 42;<br>
> end.<br>
<br>
This seems to be inconsistent with<br>
<br>
procedure Test(const a: TStringDynArray);<br>
begin<br>
a[1]:='42';<br>
end;<br>
<br>
Isn't it?<br></blockquote></div><div dir="auto"><br></div><div dir="auto">But it is consistent with static array constants and that is what counts...</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div>