[fpc-devel] Class management operators
Sven Barth
pascaldragon at googlemail.com
Fri May 24 22:46:13 CEST 2019
Ryan Joseph <ryan at thealchemistguild.com> schrieb am Fr., 24. Mai 2019,
22:26:
>
>
> > 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.
>
Object Pascal isn't a full ARC language however. Also it is not something
that one can enable on a whim cause it also affects other parts.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190524/1a249ee7/attachment.html>
More information about the fpc-devel
mailing list