[fpc-devel] Class management operators

Ryan Joseph ryan at thealchemistguild.com
Fri May 24 22:25:52 CEST 2019

> On May 24, 2019, at 1:17 PM, Sven Barth via fpc-devel <fpc-devel at lists.freepascal.org> wrote:
> This is not desired, because it would mean that for *all* assignments between *any* class type it must be at least checked for management operators or it must be forbidden that a class type with management operators can be assigned to a variable of a parent class that does not have them.
> The former is definitely not desired, because it means a performance impact for otherwise cheap assignment. And the later can become annoying as hell when you want to pass an instance e.g. to a TNotifyEvent or store it in a TStringList's Objects property. 

Isn’t this what fully ARC languages like Swift do though? I would think this would be an interesting option to at least be available for particular use cases.

	Ryan Joseph

More information about the fpc-devel mailing list