[fpc-devel] Managed Types, Undefined Bhaviour

Michael Van Canneyt michael at freepascal.org
Fri Jun 29 16:05:25 CEST 2018



On Fri, 29 Jun 2018, Martok wrote:

> Am 29.06.2018 um 14:41 schrieb Michael Van Canneyt:
>> As far as I can see, you get 2 chain and 1 done call. Which is what I'd expect.
>> The overrides of the _* calls are useless, since they are not virtual in
>> TInterfacedObject and hence never called. So that's OK too.
> Interface functions are always virtual and implemented by the actually
> instantiated class. The "override" keyword is neither allowed nor needed, this
> code does what it looks like.
>
> The expected output would be 3 Addrefs and 3 Releases.

I don't get that.

Michael.



More information about the fpc-devel mailing list