[fpc-devel] New feature announcement: constant parameters for generics

Michael Van Canneyt michael at freepascal.org
Sun Apr 26 11:02:29 CEST 2020



On Sun, 26 Apr 2020, Ryan Joseph via fpc-devel wrote:

>
>
>> On Apr 26, 2020, at 2:38 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
>> 
>> As the original author, can you say something about the intended use of this feature ?
>
> It was meant for a pretty narrow use of array types. If I knew how much work it would be to implement I probably would have not done it. :P I personally wanted it for static array lists that had methods like Add/Delete.

Fixed-length arrays are the only practical use I can think of.

The record with constants example is too convoluted to my taste.
As a reader, I find such code hard to understand.

Thanks for the examples !

Michael.


More information about the fpc-devel mailing list