<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">James Richters via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am So., 4. Okt. 2020, 23:44:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So it does... <br>
<br>
I should have tested my own example. I found my problem, I declared it as Var and it would only work with variables due to that<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">That's just a normal open array parameter and worked this way for a long time already.</div><div dir="auto"><br></div><div dir="auto">What's new in 3.2.0 is that you can use dynamic array parameters together with array constructors as well. </div><div dir="auto"><br></div><div dir="auto">Important: if you have "array of xxx" directly inside a parameter clause that ja *always* an open array. For a dynamic array you need to explicitly declare an array type or use an inline specialization of TArray<>. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </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">
</blockquote></div></div></div>