<div dir="ltr">Ok. Thanks!<div>For this already there is a bug report? to notice when it will work?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 21, 2021 at 2:12 PM Sven Barth via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Andrey Zubarev via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a>> schrieb am Mi., 21. Apr. 2021, 09:23:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all!<div>With the existing syntax of constants, it is good to pass array boundaries, but bad to initial parameter values. What do you think about such constructs:<br></div><div><br></div><div>GTValue<GValueType; const GMin,GDefault,GMax:GValueType>=...</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It is currently simply not possible to reference earlier type parameters inside the parameter clause. This affects code like this as well: generic TSomeGeneric<T; S: ISomeOtherGeneric<T>></div><div dir="auto">Once that is fixed your case will probably work as well as long as the type is one for which untyped constants can be declared. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div></div>
_______________________________________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div>