Hmmm it accept static or dynamic, whats your point?
Your complete misunderstanding that the parameter is an
open array and not a
dynamic array?
Although it looks the same syntax it means something completely different.
The most important difference is that an open array is of
unspecified length, whereas a dynamic array has a
specified length at the moment it is passed as parameter..
Because of that, dynamic array parameters can be handled more efficiently by the compiler compared to open array parameters. Its initial length is known.
Hence Marco put you on the right track.
That mistake is
quite common. It also has been explained many times on this forum.
Your suggestion of using
out is an even bigger mistake, because then the parameter refers to a dynamic array and not to an open array.
Can you still follow me?