[fpc-devel] Copy/move operator

Ben Grasset operator97 at gmail.com
Wed Jun 19 22:48:16 CEST 2019


On Wed, Jun 19, 2019 at 12:01 PM Sven Barth via fpc-devel <
fpc-devel at lists.freepascal.org> wrote:

> It wouldn't matter if the function is called Copy, operator:= or
> "jdjfjsje". Once a copy management operator is defined the record type is
> considered "managed" and thus all assignment operations are routed through
> fpc_copy_proc just as is the case when a record contains at least one field
> of a managed type (e.g. AnsiString).
> Also using operator:= would go against the principle that existing,
> internal operators can't be overloaded.
>

What I meant was, does `Copy` actually serve any particular purpose at all
versus just overloading the assignment operator normally?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190619/48aac7cf/attachment.html>


More information about the fpc-devel mailing list