title: Operator Overloading in Delphi
body: <p>is it possible (in Delphi) to overload operators in classes.
  I've read some time ago it is possible only for records but I found information that for classes too like in code below:</p>
  
  <pre><code>type
     TMyClass = class
       class operator Implicit(a: Integer): TMyClass;
     end;
  
  
  class operator TMyClass.Implicit(a: Integer): TMyClass;
  begin
     // ...
  end;
  </code></pre>
  
  <p>It is (modified) from address:
  <a href="http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/devcommon/operatoroverloads_xml.html">http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/devcommon/operatoroverloads_xml.html</a></p>
  
  <p>But when I try to use it (inside Delphi XE) I get:</p>
  
  <p><em><strong>PROCEDURE, FUNCTION, PROPERTY, or VAR expected (E2123)</em></strong> </p>
  
  <p>I want to create my own simple class for matrix manipulating and possibility of using overloading opearators inside class is very expected opportunity.</p>
  
  <p>Regars,
  Artik</p>