D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6055 - multiple problems with static dtor and ctors in spec
Summary: multiple problems with static dtor and ctors in spec
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: Other All
: P4 enhancement
Assignee: No Owner
URL:
Keywords: spec, trivial
Depends on:
Blocks:
 
Reported: 2011-05-25 09:02 UTC by Steven Schveighoffer
Modified: 2024-12-15 15:21 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Steven Schveighoffer 2011-05-25 09:02:53 UTC
First, in the module.html file, the (shared) static ctor/dtor links all go to the class.html file.

Second, in the class.html static ctor/dtor description , it specifies that the static ctor/dtor runs on program startup and termination, when actually it runs on thread startup and termination.  It also does not clearly state how shared static ctor/dtors are run once at program startup/termination.

Third, the description of static ctor/dtor in module.html does not have any examples!

I think most of the description for static ctor/dtor functions should be moved to the module file, and let the class-specific version reference that, and describe how class-specific static ctor/dtors are different.
Comment 2 Walter Bright 2012-01-24 01:19:56 UTC
Added a fix for the class.html error. The reorg is an enhancement.
Comment 3 dlangBugzillaToGithub 2024-12-15 15:21:50 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dlang.org/issues/3935

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB