On Wed, Jun 19, 2019 at 12:01 PM Sven Barth via fpc-devel <
fpc-devel@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?
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to