[phobos] [D-Programming-Language/phobos] e1774b: std.datetime: Remove redundant try/catch around Ge...
GitHub via phobos
phobos at puremagic.com
Fri Nov 6 01:44:36 PST 2015
Branch: refs/heads/master
Home: https://github.com/D-Programming-Language/phobos
Commit: e1774b6f6915ccc42b04352033df0f39c7522bd1
https://github.com/D-Programming-Language/phobos/commit/e1774b6f6915ccc42b04352033df0f39c7522bd1
Author: Vladimir Panteleev <vladimir at thecybershadow.net>
Date: 2015-11-04 (Wed, 04 Nov 2015)
Changed paths:
M std/datetime.d
Log Message:
-----------
std.datetime: Remove redundant try/catch around GetTimeZoneInformation
GetTimeZoneInformation is a Windows API function, and thus will never
throw a D exception. Presumably, at the time this code was written,
it was not marked as nothrow. However, instead of fixing the function's
signature, the code contained try/catch blocks with messages such as
assert(0, "The impossible happened. GetTimeZoneInformation() threw.");
Commit: 527eeb6e0614c4e0f8e01802d50b0772e306c355
https://github.com/D-Programming-Language/phobos/commit/527eeb6e0614c4e0f8e01802d50b0772e306c355
Author: JakobOvrum <JakobOvrum at users.noreply.github.com>
Date: 2015-11-06 (Fri, 06 Nov 2015)
Changed paths:
M std/datetime.d
Log Message:
-----------
Merge pull request #3796 from CyberShadow/pull-20151104-214649
std.datetime: Remove redundant try/catch around GetTimeZoneInformation
Compare: https://github.com/D-Programming-Language/phobos/compare/d8f6cce7edd3...527eeb6e0614
More information about the phobos
mailing list