Fr0sT.Brutal 900 Posted November 23, 2022 53 minutes ago, Stefan Glienke said: And what exact benefit would a non-ref counted interface have? Once you pass down some you lose any control over its lifetime. Obviously for those applications that don't require ref count. And it could simplify importing interfaces from DLLs Share this post Link to post
Alexander Elagin 143 Posted November 23, 2022 BTW, FreePascal has non-refcounted interfaces (CORBA/Java interfaces): https://www.freepascal.org/docs-html/prog/progsu37.html#x44-430001.2.37 Share this post Link to post
David Schwartz 426 Posted November 23, 2022 You can override the counter method to disable it, right? 1 Share this post Link to post
Alexander Elagin 143 Posted November 24, 2022 12 hours ago, David Schwartz said: You can override the counter method to disable it, right? Yes, surely. And it is possible to inherit an interfaced class not from TInterfacedObject, but from TSingletonImplementation which IS the base interfaced class without refcounting. Share this post Link to post