<p>Am 02.03.2017 14:17 schrieb "Ryan Joseph" <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>>:<br>
><br>
><br>
> > On Mar 2, 2017, at 5:45 PM, Sven Barth <<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>> wrote:<br>
> ><br>
> > "array of const" itself should work without problems though mixing the type parameters and the values contained in the array might be problematic (I'd need to test it myself).<br>
><br>
> It doesn’t work from my tests.</p>
<p>When I'll have the time I'll check whether it's correct that it doesn't work or not...</p>
<p>> > However for your specific example case why don't you use "array of T" as a parameter type for the constructor. It would work the same, but would be even more type safe and in the spirit of generics.<br>
><br>
> I didn’t even know you could pass a dynamic array as a parameter so I was always using array of const. Thanks, learning more new things again!</p>
<p>It's not a dynamic array, but an open array, that's an important difference. You (currently) can't pass a an array constructor ("[...]") to a dynamic array parameter (that will change once we support such array constructors like Delphi does). Check the language reference guide for more details.</p>
<p>Regards,<br>
Sven</p>