> On May 24, 2019, at 1:17 PM, Sven Barth via fpc-devel 
> <fpc-devel@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.

Regards,
        Ryan Joseph

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to