[fpc-pascal] Constants in generics
Ryan Joseph
ryan at thealchemistguild.com
Sun Apr 9 13:32:37 CEST 2017
> On Apr 9, 2017, at 6:13 PM, Maciej Izak <hnb.code at gmail.com> wrote:
>
> sure, but not directly. Try this:
Thanks, that’s a seriously funky hack but it works. :) The only downside is you need to define types every time you need a different size.
Is this a known feature request or anything on the to-do list for the compiler team? There’s no way to extend the functionality of static arrays in Pascal and this would accomplish that well.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list