Skip to content

Commit

Permalink
Fix for issue 6113.
Browse files Browse the repository at this point in the history
I really should have made those static constructors shared in the first
place, since immutable class and global variables are implicitly shared.
  • Loading branch information
jmdavis committed Jun 6, 2011
1 parent 7f15425 commit ba7d70b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.dd
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ $(VERSION 054, ddd mm, 2011, =================================================,
$(LI $(BUGZILLA 3479): writef/writefln: positional precision not working)
$(LI $(BUGZILLA 3564): Rdmd failing to link external C libraries)
$(LI $(BUGZILLA 3752): File.byLine fetches lines in a confusing manner)
$(LI $(BUGZILLA 6113): singletons in std.datetime are not created early enough)
)
)
4 changes: 2 additions & 2 deletions std/datetime.d
Original file line number Diff line number Diff line change
Expand Up @@ -28359,7 +28359,7 @@ private:
static immutable LocalTime _localTime;


static this()
shared static this()
{
tzset();

Expand Down Expand Up @@ -28483,7 +28483,7 @@ private:
static immutable UTC _utc;


static this()
shared static this()
{
_utc = new immutable(UTC)();
}
Expand Down

0 comments on commit ba7d70b

Please sign in to comment.