From: Adriano d. S. F. <adr...@gm...> - 2011-03-30 15:33:55
|
On 30-03-2011 08:04, Vlad Khorsun wrote: > > With Delphi you will just use IAttachment, without SmartPtr, as Delphi's "interface" have > built-in compiler magic to work with reference counts. > AFAIK, this is not how it works. Delphi "interface" has nothing directly related with refcount. Refcount comes on when IInterface is used, but IInterface is about COM (has queryInterface). I don't think you can make our interfaces to work with IInterface, so you won't get RAII with Delphi and our interfaces. Adriano |