<html><body><div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Dec 15, 2024 at 1:22:25 AM, Adriaan van Os 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" type="cite">
Similarly, you also cannot write:<br>function A(B : (one,two,three)) : double;<br><br>Not really. The function type declaration is a Borland invention, not original Pascal.<br><br>Regards,<br><br>Adriaan van Os
</blockquote>
</div>
<br>
<div dir="ltr">You mean the original pascal only allowed function declarations to be parameter types?</div><div dir="ltr"><br></div><div dir="ltr">Forcing function types and pointers to be type declaration only is now a limitation for generic procedures and should be reversed. No reason to be following what some Borland engineer was doing in the 80’s when it’s 2024.</div><div dir="ltr"><br></div><div dir="ltr">procedure DoThis<T>(param: ^T);</div><div dir="ltr">procedure DoThis<T>(param: function(a, b: T): Boolean);<br></div><div dir="ltr">
<br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards,</div> Ryan Joseph</div></div><br>
</div></body></html>