Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue 6113. #81

Merged
merged 1 commit into from
Jun 8, 2011
Merged

Fix for issue 6113. #81

merged 1 commit into from
Jun 8, 2011

Conversation

jmdavis
Copy link
Member

@jmdavis jmdavis commented Jun 6, 2011

This is actually simple enough that I'm halfway tempted to just commit the changes. UTC._utc and LocalTime._localTime are immutable class variables which are the singletons for their respective classes. However, the static constructor which initialize them are not currently shared like they should be. Since immutable static variables and immutable global variables are implicitly shared, it's not a good idea to initialize them in non-shared static constructors and in fact should probably be an error (e.g. http://d.puremagic.com/issues/show_bug.cgi?id=4923 and http://d.puremagic.com/issues/show_bug.cgi?id=6114 ).

I really should have made those static constructors shared in the first
place, since immutable class and global variables are implicitly shared.
@andralex
Copy link
Member

andralex commented Jun 6, 2011

Thanks for going through the review process.

@andralex
Copy link
Member

andralex commented Jun 8, 2011

I'm OKing this but for some reason I can't merge it automatically. Could you please push the code yourself? Thanks!

@jmdavis
Copy link
Member Author

jmdavis commented Jun 8, 2011

There's a merge conflict in changelog.dd. That's why it won't merge automatically. I'll merge it in shortly.

jmdavis added a commit that referenced this pull request Jun 8, 2011
@jmdavis jmdavis merged commit ba7d70b into dlang:master Jun 8, 2011
kuettler pushed a commit to kuettler/phobos that referenced this pull request Feb 6, 2018
Fixed: win32.mak's tag rules were out-of-date and failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants