[phobos] [D-Programming-Language/phobos] bace1f: Code reduction and clean-up for std.datetime.isTim...
GitHub via phobos
phobos at puremagic.com
Fri Oct 16 22:40:33 PDT 2015
Branch: refs/heads/master
Home: https://github.com/D-Programming-Language/phobos
Commit: bace1f6b4331e458a3445768f154b43944ef76c1
https://github.com/D-Programming-Language/phobos/commit/bace1f6b4331e458a3445768f154b43944ef76c1
Author: Jonathan M Davis <jmdavisProg at gmx.com>
Date: 2015-10-10 (Sat, 10 Oct 2015)
Changed paths:
M std/datetime.d
Log Message:
-----------
Code reduction and clean-up for std.datetime.isTimePoint.
This moves all of the private, helper templates for isTimePoint into
isTimePoint (which reduces code) and cleans up their implementation a
bit. The tests have also been improved to actually check types which are
supposed to be false with isTimePoint and the implementation adjusted
accordingly (previously, they failed to compile with isTimePoint rather
than resulting in false).
The checks for TickDuration have been removed in the process, since
we're getting rid of it. No code will break from that, since all it
means is that a type which passes isTimePoint no longer needs to work
with TickDuration. If it does work with TickDuration (as the time point
types in std.datetime will until it's been fully removed), then it will
just continue to work as it has.
This commit also improves the documentation, which was woefully vague.
Commit: 6ee65f477cc00a3b98f312cf1d33d10227ca7f8f
https://github.com/D-Programming-Language/phobos/commit/6ee65f477cc00a3b98f312cf1d33d10227ca7f8f
Author: Brian Schott <briancschott at gmail.com>
Date: 2015-10-16 (Fri, 16 Oct 2015)
Changed paths:
M std/datetime.d
Log Message:
-----------
Merge pull request #3709 from jmdavis/isTimePoint
Code reduction and clean-up for std.datetime.isTimePoint.
Compare: https://github.com/D-Programming-Language/phobos/compare/c5c87895a8bc...6ee65f477cc0
More information about the phobos
mailing list