[fpc-pascal]Operator overloading, it works!

Sebastian Schuberth s.schuberth at gmx.net
Sun Oct 1 18:50:54 CEST 2000

Hi all,

I just realized that it is possible to define operators via overloading
which accept objects as parameters! You just have to define those
function outside of the object scope. My mistake was to try to write
"operator +(a,b:Complex) ...", just like any other object member
function, within the object definition. Hey, Free Pascal is great :-)


Sebastian Schuberth

More information about the fpc-pascal mailing list