scope(~this)

Inquie via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Mar 12 15:22:16 PDT 2017


On Sunday, 12 March 2017 at 22:13:21 UTC, Stefan Koch wrote:
> On Sunday, 12 March 2017 at 21:38:44 UTC, Inquie wrote:
>> Is there any easy way to create a scope for termination of the 
>> object?
>>
>> [...]
>
> scope(exit)

That is for the function, correct? If I release the resource at 
the end of the function, the COM interface will no longer be 
valid. It must be done when the class terminates, not the 
function.




More information about the Digitalmars-d-learn mailing list