Why is a static struct's dtor called at the exit of a function?

Steven Schveighoffer schveiguy at yahoo.com
Thu Jul 21 10:43:04 PDT 2011


On Thu, 21 Jul 2011 12:39:27 -0400, Jonathan M Davis <jmdavisProg at gmx.com>  
wrote:

>> However, I don't think that any destructors are called on thread
>> destruction...
>
> That doesn't sound good.

I may be wrong, a simple test should suffice.

-Steve


More information about the Digitalmars-d-learn mailing list