[fpc-devel] class operator overloads

Ryan Joseph genericptr at gmail.com
Mon Jun 10 14:27:46 CEST 2019



> On Jun 10, 2019, at 3:13 AM, Sven Barth via fpc-devel <fpc-devel at lists.freepascal.org> wrote:
> 
> A basic principle of operator overloads is that existing, internal operators are not overloadable. This principle won't be abandoned only because you want managed classes. 
> 

Existing internal operators? Sorry I don’t understand. The := operator is already overloadable but the left side isn’t passed in. Same goes for other binary operators where the destination variable is not passed it even though that could have been useful information.

Regards,
	Ryan Joseph




More information about the fpc-devel mailing list