[fpc-pascal] Constants in generics
Sven Barth
pascaldragon at googlemail.com
Sun Apr 9 23:40:46 CEST 2017
Am 09.04.2017 14:03 schrieb "Ryan Joseph" <ryan at thealchemistguild.com>:
>
>
> > 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.
Constant parameters are definitely not planned for generics.
Generics are already providing enough headaches as they are without adding
that as well -.-
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170409/2ba1a5c8/attachment.html>
More information about the fpc-pascal
mailing list