[fpc-devel] class operator overloads
Sven Barth
pascaldragon at googlemail.com
Mon Jun 10 09:13:44 CEST 2019
Ryan Joseph <genericptr at gmail.com> schrieb am Mo., 10. Juni 2019, 03:00:
> Sorry to bring this up again but I had a thought today while working
> regarding class operator overloads in classes (i.e. operators that are
> members of classes).
>
> If the operators in classes allowed another parameter for the left sided
> value could this idea be more viable? Unless I’m mistaken I think this
> would make it possible to do the memory management required.
>
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.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190610/6de81a92/attachment.html>
More information about the fpc-devel
mailing list