Re: CLS complaint = Operators should not be overloaded



"Only properties and methods may be overloaded, Operators should not
be overloaded."

That is not correct. If you overload an operator, you *should* provide an
alternative method that fulfills the same purpose. This keeps your type fully
usable for .NET languages that don't support operator overloading (see System.DateTime
for example).

Great, and this totally makes sense. So, I can do it, and people who
use the more powerful languages can take advantage of it, but for
those without such features, they can still use my unit!

Thanks, Joerg!

Zytan

.