James Richters via fpc-pascal <fpc-pascal@lists.freepascal.org> schrieb am
So., 4. Okt. 2020, 23:44:

> So it does...
>
> 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
>

That's just a normal open array parameter and worked this way for a long
time already.

What's new in 3.2.0 is that you can use dynamic array parameters together
with array constructors as well.

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<>.

Regards,
Sven

>
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to