<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">J. Gareth Moreton via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Mi., 16. Sep. 2020, 16:10:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I did wonder if it was possible to use an object of some kind or, I dare <br>
say, some evil low-level manipulation of its internal structure wrapped <br>
into a convenient function that, say, calls ReallocMem on the internal <br>
pointer and sets the length field as normal. The trouble is, that will <br>
be inherently unsafe on account that you can't pass an untyped dynamic <br>
array as a formal parameter ("array of const" is, as the name implies, <br>
an array of constants that's just a list).<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">"array of const" is internally an "array of TVarRec" and can be used for non constants as well (there values will be copied to the open array). </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>