2016-04-10 18:53 GMT+02:00 Maciej Izak <hnb.c...@gmail.com>: > > Important note: > operator Initialize is called after system int_initialize for required > record fields > operator Finalize is called before system int_finalize for required record > fields > operator AddRef is called after int_addref for required fields > operator Copy is called after fpc_Copy_internal for required fields >
Small correction. Copy operator(if declared) is executed instead of fpc_Copy_internal (any other behavior has no sense). To call default fpc_Copy_internal operation is possible to call CopyArray. For example class operator TFoo.Copy(constref aSrc: TFoo; var aDst: TFoo); begin CopyArray(@aDst, @aSrc, TypeInfo(TFoo), 1); end; I need to fix/adjust this on branch. -- Best regards, Maciej Izak
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel