<div dir="ltr"><div><div><div><div><div>Hi There,<br><br></div>I try to write a procedure with generic parameters, but failed:<br><span style="font-family:courier new,monospace"><br></span></div><span style="font-family:courier new,monospace">type<br>
</span></div><span style="font-family:courier new,monospace"> generic TArray<T> = array of T;<br><br></span></div><span style="font-family:courier new,monospace">procedure ProcessArray(arr: TArray<T>);<br>begin<br>
end;</span><br><br><br></div><div>The compiler said "Generics without specialization cannot be used..."<br><br></div><div>But if I specialize the parameter then this procedure is useless.<br><br></div><div>Any ideas?<br>
<br>Thanks<br></div></div>