Jump to content
Henry Olive

Function with 2 return values ?

Recommended Posts

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×