Andrei Alexandrescu
141b234e52
Merge pull request #1382 from AndrejMitrovic/Fix10510
...
Issue 10510 - enforce should take any callable function
2013-07-01 11:06:11 -07:00
Andrej Mitrovic
62f6459b49
Fix Issue 10510 - enforce should take any callable function without regard for calling conventions.
2013-07-01 19:40:28 +02:00
monarch dodra
738a7879d4
Fix wchar/dchar issue
...
Just cause a file is nativelly treated as UTF16 (or something), doesn't mean you can iterate wchars.
2013-07-01 19:15:45 +02:00
monarch dodra
97cec336a1
Fix Issue 10517 - readln(Char)(Char[] buf) accepts non-mutable buffers
...
Also templatizes a global readln
2013-07-01 19:14:48 +02:00
Steven Schveighoffer
f5ed82d638
Merge pull request #1376 from yebblies/issue4923
...
initialize first thread's message box in a normal static ctor, to work around requirement that thread-local variables cannot be set from a shared static constructor.
2013-06-30 15:58:01 -07:00
Alex Rønne Petersen
931442d539
Merge pull request #1369 from AndrejMitrovic/IsemailFix
...
Deglobalize default threshold value, and fix initialization of threshold variable
2013-06-30 08:20:21 -07:00
Daniel Murphy
c431176b05
Call thisTid to initialize first thread's message box, bypassing checks against setting thread-local variables from a shared static constructor.
2013-07-01 00:18:28 +10:00
Hara Kenji
25b21ed2f0
Merge pull request #1379 from AndrejMitrovic/FixupRefcountDocs
...
[trivial] Fix Refcounted docs
2013-06-30 03:37:07 -07:00
Andrej Mitrovic
2427090fb1
Fix Refcounted docs - refCountedEnsureInitialized and refCountedIsInitialized did not exist.
2013-06-30 01:42:08 +02:00
Andrej Mitrovic
b135fe9293
Merge pull request #1357 from WebDrake/random-testcoverage
...
Issue 10426 - Improve code coverage of std.random unittests
2013-06-29 07:21:41 -07:00
Andrej Mitrovic
4da1639c98
Merge pull request #1337 from 9rnsr/fix_attrs
...
Potentially @safe & pure formatting
2013-06-27 18:53:22 -07:00
Andrei Alexandrescu
ff1a7eb304
Merge pull request #1375 from Geod24/master
...
Fix simple makefile error
2013-06-25 21:22:25 -07:00
Geod24
226f5c1e2a
Tabulation in line 48 causes make to fail.
...
Some version of make (ie: cygwin) will evaluate it to ^\t$, hence issuing an error.
Tabs replaced by 4 spaces.
2013-06-26 09:48:24 +08:00
Hara Kenji
515f43e741
Merge pull request #1373 from 9rnsr/fix_imports
...
Remained one for 313 & 314
2013-06-25 04:29:37 -07:00
Andrej Mitrovic
25ac708f01
Merge pull request #1370 from AndrejMitrovic/Fix10468
...
(Regression 2.063) - Issue 10468 - Remove ref hardcoded from parameter type in lockstep
2013-06-25 03:50:21 -07:00
k-hara
a03d00083d
Remained one for 313 & 314
2013-06-25 19:44:35 +09:00
Hara Kenji
92e279a973
Merge pull request #1372 from 9rnsr/fix_imports
...
More fix for issue 313 & 314
2013-06-25 01:52:22 -07:00
k-hara
2f21ff0c74
More fix for issue 313 & 314
2013-06-25 17:01:52 +09:00
Daniel Murphy
4e7cb93c44
Merge pull request #1371 from AndrejMitrovic/Fix10469
...
Issue 10469 - Remove WinAPI prototypes and enums from std.process.
2013-06-24 22:56:53 -07:00
Hara Kenji
b7216eae2e
Merge pull request #1368 from 9rnsr/fix_imports
...
Fix issue 313 & 314 - Add necessary imports and fix FQN accesses
2013-06-24 18:48:36 -07:00
k-hara
03a32d6fa4
Fix issue 313 & 314
2013-06-25 08:38:30 +09:00
Andrej Mitrovic
f7b36b9124
Fixes Issue 10469 - Remove WinAPI prototypes and enums from std.process.
2013-06-25 00:32:52 +02:00
Andrej Mitrovic
4727fdde0b
Fixes Issue 10468 - Remove ref from parameter type in lockstep, which caused a regression.
2013-06-25 00:19:05 +02:00
Andrej Mitrovic
8e4ef6aa8d
Deglobalize default threshold value, and fix initialization of threshold variable.
2013-06-24 22:25:42 +02:00
Andrei Alexandrescu
f85bd54ef5
Merge pull request #1366 from irritate/issue_5692
...
Issue 5692 - Fix printing of complex numbers with a negative imaginary p...
2013-06-22 19:19:17 -07:00
irritate
14a0a92c70
Issue 5692 - Fix printing of complex numbers with a negative imaginary part.
...
Removes redundant plus sign before the negative sign.
http://d.puremagic.com/issues/show_bug.cgi?id=5692
2013-06-22 21:54:53 -04:00
Joseph Rushton Wakeling
32b11031a4
Restrict PseudoRngTypes access to package level.
2013-06-22 20:49:52 +01:00
Andrei Alexandrescu
3f90290038
Merge pull request #1361 from irritate/issue_10408
...
Issue 10408 - Fix compile error with multiple-function reduce on a const...
2013-06-22 10:28:30 -07:00
Andrei Alexandrescu
ff483ff6a1
Merge pull request #1363 from monarchdodra/filterSave
...
Fix save in filter.
2013-06-22 09:51:49 -07:00
monarch dodra
4d80f9c1a8
Fix save in filter.
...
filterBidir was actually correct.
2013-06-22 16:42:43 +02:00
Joseph Rushton Wakeling
e86bc65639
Fix Issue 9607 - std.random.randomShuffle() and partialShuffle()
...
don't work with Xorshift.
This is an instance of Issue 2803, a clash between a template
parameter and a default argument. I've used the workaround
proposed in that issue thread:
http://d.puremagic.com/issues/show_bug.cgi?id=2803#c1
Tests have been included to ensure that these functions work
with all possible RNG types.
2013-06-22 09:43:56 +01:00
irritate
58d403a02d
Issue 10408 - Fix compile error with multiple-function reduce on a const range.
2013-06-21 22:54:55 -04:00
Andreas Zwinkau
62d7f30cb1
Style fixes in std/uri
...
- indentation within blocks
- braces on their own lines
2013-06-21 12:44:16 +02:00
Andreas Zwinkau
29cfa67a2b
Remove debug printfs from std/uri
2013-06-21 12:40:59 +02:00
Andreas Zwinkau
fde07f22f2
Unittesting uriLength and emailLength
...
Previously untested. Pushes code coverage from 57% to 79%.
2013-06-21 12:25:45 +02:00
Joseph Rushton Wakeling
da1dfefba1
Many asserts in std.random can be made static.
2013-06-21 10:49:34 +01:00
Joseph Rushton Wakeling
66cc47b3c1
Remove superflous assert(false) and return statements.
2013-06-21 00:54:37 +01:00
Joseph Rushton Wakeling
0d5162b826
Unittest for MersenneTwisterEngine .save.
2013-06-20 20:34:09 +01:00
Joseph Rushton Wakeling
037ec6e3d1
Complete non-static code coverage for LinearCongruentialEngine unittests.
...
Unittests for LinearCongruentialEngine were previously missing the
constructor and the .save and .opEquals() methods.
Code coverage analysis still fails to pick up on the static methods
and the contents of a static if scope in lines 374-382 of .popFront().
2013-06-20 20:05:53 +01:00
Joseph Rushton Wakeling
fddc91d5c3
Complete code coverage for Xorshift unittests.
...
Unittests for Xorshift were previously failing to cover the
constructor, and the .seed(), .save and .opEquals() methods.
2013-06-20 20:02:55 +01:00
Joseph Rushton Wakeling
02fe8ad76a
Ensure adequate code coverage from std.random.RandomSample unittests.
...
The old unittests were missing coverage of large sections of
RandomSample.skip() because the ratios of sample size to source size
were such that Algorithm A was always being chosen over Algorithm D.
The new unittests fix this and also extend coverage to a number of
other areas previously not addressed. There are also currently-failing
tests commented out with version(none) that can be used to verify
future bugfixes and improvements.
A few lines in skip() remain uncovered simply because they depend on
runtime conditions that are extremely rare.
2013-06-20 19:39:02 +01:00
k-hara
a4d71338f9
[appender] Mark pointer slicing @trusted (fix for issue 10359)
2013-06-20 11:13:52 +09:00
k-hara
f54525e775
[to!string] severals
2013-06-20 10:57:51 +09:00
k-hara
d8d4c1ea41
[formatValue] (pointer)
...
+ Infer attributes in retro range primitives
2013-06-20 10:57:48 +09:00
k-hara
f3e8ed8443
[format] Add @safe/pure ability to writeUpToNextSpec, fillUp, and formattedWrite
2013-06-20 10:57:45 +09:00
k-hara
01f6a978e0
[non to!string] because they are unrelated to formatValue
2013-06-20 10:57:41 +09:00
k-hara
84a0a41f68
[formatValue] (bool, null, integrals, floatings, chars)
...
Floating point is blocked by sprintf
2013-06-20 10:54:42 +09:00
k-hara
7e60eb2405
[parse, str.to!x] Determine @trusted operations
2013-06-20 10:54:40 +09:00
k-hara
9cdfd6899a
[appender] Determine @trusted operations
2013-06-20 10:54:37 +09:00
k-hara
99d22b80f6
[appender] Accepting qualified buffer is not safe behavior
...
To reduce existing code breaking, mark such construction as @system.
2013-06-20 10:54:35 +09:00