<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">fpc-pascal@lists.freepascal.org</a>> schrieb am Mi., 21. Apr. 2021, 09:23:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>