[fpc-devel] New feature announcement: constant parameters for generics
florian at freepascal.org
Sun Apr 26 11:05:32 CEST 2020
Am 26.04.2020 um 11:02 schrieb Michael Van Canneyt:
> 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
> 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 !
Another example might be headers for embedded systems.
More information about the fpc-devel