On Wed, 25 May 2011 11:50:16 -0400, Ali Çehreli <acehr...@yahoo.com> wrote:

On 05/25/2011 08:35 AM, Matthew Ong wrote:
On 5/25/2011 11:13 PM, Steven Schveighoffer wrote:
http://www.digitalmars.com/d/2.0/class.html#StaticDestructor

-Steve

Static Destructor maybe executed when the class is being unloaded GC?
Because this is a class level. It is more like the application level
exit and such.

There is a problem at Digital Mars's site. Steve must have meant the module static destructor. Search for "Static Construction and Destruction" on the module page:

   http://www.digitalmars.com/d/2.0/module.html

(Do not click StaticDestructor at the top of the page. That is linked to the class page.)

Oh, yeah, that's exactly what I did!  hm...

Need to file a bug. (filed as http://d.puremagic.com/issues/show_bug.cgi?id=6055 )

Note that class static dtors are exactly the same as module static dtors, they just are inside the class namespace.

-Steve

Reply via email to