<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I found in a fpc program a statement sort of:</p>
<tt>Type</tt><tt><br>
</tt><tt> TSomeType = (a,b,c)</tt><tt><br>
</tt><tt> TaType = set of TSometype</tt><tt><br>
</tt><tt>var</tt><tt><br>
</tt><tt> setA,setB: TaType;</tt><tt><br>
</tt><tt>.....</tt><tt><br>
</tt><tt><b>if setA * setB = [] then doSomething</b>;</tt><tt><br>
</tt><tt><br>
</tt>which I found very smart to detect if the two sets have some
common elements, but I've been unable to find in the fpc
documentation how the * operator is overloaded in fpc when dealing
with enumerated and sets of enumerated types. Should I find out by
trial and error or it's written somewhere?<br>
<br>
Thanks,<br>
<br>
Giuliano<br>
<br>
<pre class="moz-signature" cols="72">--
Do not do to others as you would have them do to you.They might have different tastes.</pre>
</body>
</html>