Commit graph

230 commits

Author SHA1 Message Date
Walter Bright
dc302d26a4 DIP25: make phobos work with it 2015-01-30 12:02:48 -08:00
Daniel Murphy
6af3fb5525 Remove implicit conversions from array to bool 2015-01-27 21:55:00 +11:00
k-hara
a40422b2aa Add missing imports 2015-01-07 00:18:56 +09:00
H. S. Teoh
d971256ecd Don't import std.format in any public scope.
Workaround for: https://issues.dlang.org/show_bug.cgi?id=13808
2014-12-02 07:55:44 -08:00
Rainer Schuetze
7c2f962b10 make nested foreach over TypeTuple bodies into lambdas to avoid huge functions 2014-11-28 17:15:37 +01:00
David Nadlinger
ed7575f7b0 Merge pull request #2704 from MartinNowak/nothrowScheduler
nothrow for Schedulder
2014-11-27 20:47:51 +01:00
Ilya Yaroshenko
2c744b54e1 std.range: constraints => primitives
See discussion and voting in #2661
2014-11-23 20:05:20 +03:00
Martin Nowak
354544b6bb nothrow for Schedulder
- require nothrow for thisInfo, yield

- make Condition methods nothrow
2014-11-23 00:41:57 +01:00
H. S. Teoh
daaa7c70fe Merge pull request #2755 from 9il/imports
clean scope imports
2014-11-21 10:38:53 -08:00
David Nadlinger
7e80e67630 Merge pull request #2728 from 9il/typecons
std.typecons: remake toString to template, clean module imports
2014-11-20 22:11:54 +01:00
Ilya Yaroshenko
c8d9afedea clean scope imports
imports of `std.range, std.algorithm, std.array, std.string,
std.format, std.uni` are affected.
2014-11-21 00:08:35 +03:00
Ilya Yaroshenko
af02101ab9 std.typecons: remake toString to template, clean module imports
update datetime unittests
2014-11-20 23:08:33 +03:00
Lars T. Kyllingstad
96583fe46b isNaN() is not a property
...so it shouldn't be used as one.
2014-11-20 20:22:00 +01:00
Jonathan M Davis
57f316172f Merge pull request #2681 from 9il/datetime
std.datetime: clean imports
2014-11-16 16:10:14 -08:00
Ilya Yaroshenko
0b5b55cf19 remove .dup 2014-11-14 00:14:57 +03:00
Ilya Yaroshenko
4ef70b68e3 fix scope import for Windows 2014-11-13 02:40:28 +03:00
Ilya Yaroshenko
61e48ebb8a fix import 2014-11-12 17:15:46 +03:00
Ilya Yaroshenko
29febefa87 add local import 2014-11-12 15:53:00 +03:00
Walter Bright
1f7142f941 use auto return in std.datetime 2014-11-12 01:54:39 -08:00
Ilya Yaroshenko
2cf7b4795f datetime scope imports
more scope imports

restore std.time global import

check scope imports

update windows unitises
2014-11-11 18:14:12 +03:00
Joakim
800506b794 Deprecate last remaining module from std.c and move it to druntime 2014-10-31 12:04:41 -05:00
Geod24
0fb95b8c27 Usage of WEB macro for License everywhere 2014-10-15 11:30:42 +02:00
jmdavis
26d7c69bc9 Update to time zone conversions due to MS updates. 2014-10-09 09:08:09 -07:00
Igor Stepanov
8b32555eab fix datetime test 2014-10-06 21:36:41 +00:00
Martin Nowak
fb405239ae fix doc 2014-10-04 09:46:32 +02:00
Denis Shelomovskij
d63035003a Fix some property enforcements. 2014-09-01 18:01:16 +04:00
Geod24
7100047473 Replace enforceEx with enforce where it's possible 2014-08-25 12:18:02 +02:00
Denis Shelomovskij
ff144b0ae0 Replace most toStringz/toUTF16z/toUTFz usages with tempCString* ones.
Only non-trivial cases left when a refactoring is required to use a temporary buffer.
Also add `nothrow`/`@nogc` attributes.
2014-08-23 17:23:13 +04:00
jmdavis
66e81b6824 Change SysTime.fracSec to "scheduled for deprecation" from deprecated.
Vladamir has a use case where the deprecation gives him a wall of
deprecation messages, and because he needs to use both 2.066 and master,
he can't move his code over to fracSecs yet. So, I'm changing the
deprecation to "scheduled for deprecation" for one release. And because
of this case, I think that I'm going to change the general policy to
"scheduling for deprecation" for one release before actually deprecating
a symbol. The fact that deprecated just generates a message mostly
obviates the need for "scheduling for deprecation" like we used to do,
but with this change, it will give folks one release to avoid the wall
of deprecation messages if they happen to use the deprecated symbol a
lot (or just once in a frequently instantiated template as in Vladamir's
case). It probably won't do anything for anyone who doesn't read the
changelog, but it will help out the folks who do.
2014-08-20 20:48:10 -07:00
k-hara
0367623a2c fix up issue 13313 - Support database name to Windows timezone name conversion 2014-08-20 00:18:47 +09:00
jmdavis
56f986a8d4 Fix compilation errors on Windows. 2014-08-18 16:20:59 -07:00
jmdavis
f10ed1a90e Fix issue# 13313: Line Islands Standard Time was missing.
It's included in this update http://support.microsoft.com/kb/2981580 but
has yet to make it into
http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/zone_tzid.html
2014-08-18 01:43:48 -07:00
jmdavis
503699a781 Update the Windows TZ name conversions.
I also added a script at the bottom of std.datetime which can be used to
regenerate the conversions from the latest conversion file at
unicode.org so that it will be much easier to make such updates in the
future.
2014-08-18 01:41:48 -07:00
jmdavis
3a5a11038d Issue# 13319. Make tzDatabaseNameToWindowsTZName return null on failure. 2014-08-18 01:36:23 -07:00
H. S. Teoh
1c867ac48a Fix mismatching param name. 2014-08-14 18:24:34 -07:00
jmdavis
d0a1a7bcf8 Cleanup of a version-else block in std.datetime so that it has an else. 2014-07-30 01:02:33 -07:00
jmdavis
70324eadd8 Clean up uses of zero-length Durations. 2014-07-30 01:02:23 -07:00
jmdavis
521776fbdb Remove last undeprecated uses of SysTime.fracSec. 2014-07-30 01:02:13 -07:00
jmdavis
a9b0ff100c Replace uses of FracSec.from!"hnsecs" with core.time.hnsecs. 2014-07-30 01:02:06 -07:00
jmdavis
8752c521a5 Replace uses of FracSec.from!"hnsecs" with core.time.hnsecs. 2014-07-30 01:01:56 -07:00
jmdavis
1e6a375af5 Replace uses of FracSec.from!"hnsecs" with core.time.hnsecs. 2014-07-30 01:01:47 -07:00
jmdavis
29cba72d82 Replace uses of FracSec.from!"usecs" with core.time.usecs. 2014-07-30 01:01:38 -07:00
jmdavis
a9e48998bb Replace uses of FracSec.from!"msecs" with core.time.msecs. 2014-07-30 01:01:31 -07:00
jmdavis
74935db85f Replace uses of FracSec.from!"msecs" with core.time.msecs. 2014-07-30 01:00:35 -07:00
jmdavis
7f5e2f8cd7 Replace fracSecToISOString and fracSecFromISOString. 2014-07-30 01:00:27 -07:00
jmdavis
42c2158efa Replace use of FracSec in SysTime's API with Duration.
FracSec is overly verbose and based on the recent discussions with
regards to Duration.get and Duration.split, it should be given the boot.
The only non-deprecated place which uses it in Phobos is SysTime, so
this deprecates the functions that use it, and replaces it with ones
that expect a Duration of less than one second.

This means replacing a SysTime constructor and SysTime's fracSec
property. fracSecs is introduced to replace fracSec. It uses a Duration
or takes a template argument for the units and then uses an int
(essentially then creating an overload which is a shortcut for calling
Duration.total or creating a Duration, depending on whether its the
getter or the setter).
2014-07-30 01:00:06 -07:00
Joakim
dc67efc3c4 Deprecate std.c.string and move its contents to druntime 2014-07-13 12:47:26 -05:00
Joakim
11de397dd7 Start getting tests passing on Android/x86 2014-07-09 17:52:15 -05:00
k-hara
8506562b06 Add missing imports 2014-06-24 14:15:20 +09:00
Jonathan M Davis
aa4d081806 Merge pull request #2262 from 9rnsr/fix_imports
Rename local variables to avoid conflict with local imports
2014-06-23 21:33:30 -07:00