Ben Grasset <operato...@gmail.com> schrieb am Mi., 19. Juni 2019, 23:45:
> On Wed, Jun 19, 2019 at 5:02 PM Ryan Joseph <generic...@gmail.com> wrote: > >> It’s used for making reference counted types at the user level. >> > > I'm not sure why you'd necessarily need to implement Copy specifically for > that kind of thing, though. Initialize and Finalize would be much more > relevant, I'd say. > You need a Copy operation if you need to take some action during that operation. Main example is adjusting a reference count so that a class instance can be freed at the correct time (smart pointer). Regards, Sven >
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel