[fpc-devel] Operator overloading

Jonas Maebe jonas at freepascal.org
Sat Apr 13 15:49:31 CEST 2019


On 08/04/2019 21:39, Bart wrote:
> 1.
> Is operator overloading possible at all in MacPas mode (does it need
> some modeswitch)?

It's not possible.

> 2.
> If this is not the case, then why forbid this particular operator
> overload at all?

You can use a unit that is compiled in e.g. mode ObjFPC in a unit 
compiled in MacPas mode, and then the latter will use the overloaded 
operators from the former.


Jonas



More information about the fpc-devel mailing list