Sven Barth schrieb:
Am 22.09.2014 09:47 schrieb "Michael Schnell" <mschn...@lumino.de
> Why not use "interface" to add ref-counting to an object ? This seems
to work nicely even though the name "interface" in not "speaking" on
that behalf.
Because you'll need to declare an interface for each class you want to
have reference counted so that you can access its methods, properties, etc.
This overhead could be eliminated by another syntax extension, like
TMyARCclass = interface(TObject)
where the Compiler could allow for implementations of the declared
methods just as for
TMyARCclass = class(TObject)
bridging the gap between traditional (strictly declarative) interfaces
and classes (including implementations), with or without ARC.
DoDi
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel