<html><body><div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Dec 15, 2024 at 6:28:25 PM, Hairy Pixels <<a href="mailto:genericptr@gmail.com">genericptr@gmail.com</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">
Also noteworthy is ISO standard can accommodate generics which Borland’s design can not.
</blockquote>
</div>
<br>
<div dir="ltr">Wait, I’m wrong on this, you can use generic proc types. The problem with generics are pointers to T. For example that below is not possible.</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr">type</div><div dir="ltr"> generic TFindNodeComparator<T> = function(item: ^T): Boolean;</div><div dir="ltr"><br></div><div dir="ltr">generic function FindNode<T>(func: specialize TFindNodeComparator<T>): ^T;</div><div><br></div></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>