> On Mar 2, 2017, at 5:45 PM, Sven Barth <[email protected]> wrote:
>
> "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).
It doesn’t work from my tests.
> 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.
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!
Regards,
Ryan Joseph
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal