<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Am 21.04.2021 um 15:44 schrieb Benito
van der Zander via fpc-devel:<br>
</div>
<blockquote type="cite"
cite="mid:9d2a802e-16ed-f0bd-7b28-dd32838b604e@benibela.de">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div id="smartTemplate4-template">Hi,<br>
<br>
<p> what about overloading operators for OBJECTs?</p>
<p>They do not conflict with any default operators.</p>
<p>I expected this to work, but it did not compile:</p>
<p><br>
</p>
type generic TXQHashset<TKey, TInfo> = object
//(specialize TXQBaseHashmap<TKey,TXQVoid,TInfo>)... <br>
</div>
<div> class operator =(const a, b: TXQHashset): boolean;<br>
end;<br>
</div>
</blockquote>
<br>
You can only use global operators with objects.<br>
<br>
Regards,<br>
Sven<br>
</body>
</html>