<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Nov 8, 2018 at 11:50 PM Ryan Joseph <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Question: should other consts besides integers be allowed? I don’t think it makes sense personally to use strings, floats or sets but maybe I’m wrong.<br></blockquote><div><br></div><div>As a daily FPC user there's nothing I find more annoying than compiler restrictions that are visibly artificial, so I'd say you should definitely allow basically anything that's physically possible to allow in that context.</div><div><i>Someone</i> will find it useful, trust me. I can already think of various uses for string constants as generic parameters that I certainly would have already done in the past if I could have, for example.</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 8, 2018 at 11:50 PM Ryan Joseph <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Nov 9, 2018, at 4:28 AM, Florian Klämpfl <<a href="mailto:florian@freepascal.org" target="_blank">florian@freepascal.org</a>> wrote:<br>
> <br>
> I like the idea of const in generics, but it needs serious cleanup when it's working:<br>
<br>
Question: should other consts besides integers be allowed? I don’t think it makes sense personally to use strings, floats or sets but maybe I’m wrong.<br>
<br>
Regards,<br>
Ryan Joseph<br>
<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a></blockquote></div>