[Issue 17867] @trusted destructor not callable from @safe function
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Oct  2 12:58:35 UTC 2017
    
    
  
https://issues.dlang.org/show_bug.cgi?id=17867
Steven Schveighoffer <schveiguy at yahoo.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com
--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> ---
It should work, IMO.
Note that the way this looks internally is kind of bizarre. The actual ~this()
function is separate from the one that calls the member's dtor. So I can see
how it would not glue together right under the hood.
In other words, the compiler generates a function that does this:
realdtor()
{
   ~this();
   member.~this();
}
And I don't know if there's a way to annotate that one.
--
    
    
More information about the Digitalmars-d-bugs
mailing list