Am 25.09.2014 11:04 schrieb "Michael Schnell" <mschn...@lumino.de>: > > On 09/22/2014 02:34 PM, Sven Barth wrote: >> >> >> >> I already suggested the addition of a TARCObject as a general reference counted base class in my RFC ;) >> > Sounds nice, but is it (easily) possible to implement that the compiler magic for doing the ref-counting is issued exactly whenever the TARCObject is an ancestor ?
TARCObject would just be provided for convenience reasons. The real magic is a keyword that can be used for any class to enable ARC for that class and all it's descendant. And even if TARCObject would be special the compiler know the full hierarchy anyway otherwise it couldn't decide which methods to call. > Such decision seems like unprecedented yet. Nope. Normal compiler business. Regards, Sven
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel