Is it possible to deinitialize the class without calling the gc?

12345swordy alexanderheistermann at gmail.com
Fri Aug 3 16:24:33 UTC 2018


On Friday, 3 August 2018 at 15:41:13 UTC, Adam D. Ruppe wrote:
> On Friday, 3 August 2018 at 15:32:54 UTC, 12345swordy wrote:
>> Is there RecusiveDestruct function that can be called that is 
>> attribute friendly?
>
> No, the destructor definition in the language is not attribute 
> friendly. Best you can do is `.destroy(obj)` and it can't see 
> all the @nogc stuff (because the language doesn't actually 
> support it here)

Your calling the gc if you call the destroy function for classes 
as it calls the rt_finalize function. Regardless you didn't 
answer the question that I posted in the title.

Alexander


More information about the Digitalmars-d mailing list