How does rt_finalized function work exactly? (Fixing bugs regarding Destroy).
    Basile B. 
    b2.temp at gmx.com
       
    Fri Jan 19 16:18:15 UTC 2018
    
    
  
On Friday, 19 January 2018 at 15:56:58 UTC, 12345swordy wrote:
> I can't find any documentation nor can I find any information 
> regarding it's implementation. I am asking this, as I focusing 
> on fixing bugs that destroy currently has, most noticeably bugs 
> regarding attributes. I am not sure that this requires a DIP in 
> order to fix this.
>
> https://issues.dlang.org/show_bug.cgi?id=17297
> https://issues.dlang.org/show_bug.cgi?id=15246
You'll probably learn new and interesting things but i warn you: 
this problem can't be fixed.
Look at here: 
https://github.com/dlang/druntime/blob/master/src/rt/lifetime.d#L1380.
rt_finalize calls rt_finalize2 which use the **dynamic** type 
info to get a pointer to the __xdtor of each generation.
    
    
More information about the Digitalmars-d
mailing list