D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6920 - static on module constructors/destructors is redundant
Summary: static on module constructors/destructors is redundant
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-09 10:18 UTC by Alex Rønne Petersen
Modified: 2016-10-15 01:18 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 Alex Rønne Petersen 2011-11-09 10:18:49 UTC
Currently, 'static' is required on module constructors and destructors. This seems like an extremely odd decision, considering module fields and functions do not need this modifier. I propose removing this requirement.
Comment 1 Andrei Alexandrescu 2016-10-15 01:18:55 UTC
It's a sensible proposal, but its time has sadly passed.