monarch dodra
01a2bdb02e
Merge pull request #1535 from blackwhale/fix-lambda
...
Sidestep issue 10928
2013-09-01 01:13:44 -07:00
Andrej Mitrovic
2d026ee91e
Remove explicit qualifiers for translate overloads which take a buffer. Use std.range.put instead of member function put when writing to the buffer.
2013-08-31 13:37:55 +02:00
monarch dodra
aa3b13ce49
Merge pull request #1328 from 9rnsr/fix10230
...
Issue 10230 - Duplicated buttons for runnable examples
2013-08-31 02:50:17 -07:00
Lionello Lunesu
b4074054ba
Fix issue 10893: added missing or renamed DDoc parameters (found by fix to 10236)
2013-08-31 15:36:29 +08:00
monarch dodra
627d178f87
Merge pull request #1516 from quickfur/complex_format
...
Fix issue 10881: support writefln("%f") of complex numbers
2013-08-30 14:09:29 -07:00
Dmitry Olshansky
8d50d807be
sidestep issue 10928
2013-08-30 22:56:38 +04:00
Simen Kjærås
0d7d603bde
Undo some changes to work around bug. Oh well.
2013-08-30 12:35:41 +02:00
monarch dodra
89621079d1
Merge pull request #1531 from quickfur/issue6381
...
Add unittest for issue 6381 (std.math.floor/ceil should be pure)
2013-08-30 00:26:32 -07:00
H. S. Teoh
3bdb1a1a04
Add TODO to make toString() pure @safe nothrow
...
I tried each of those qualifiers but none of them compiled due to the
way std.format works right now. So leave it for the future.
2013-08-29 08:13:18 -07:00
H. S. Teoh
5a622e0fb1
Add unittest for issue 6381.
...
To prevent regressions.
2013-08-29 08:04:27 -07:00
monarch dodra
fcaefd7bd0
Merge pull request #1499 from WebDrake/randomcover-randomsample
...
Improved design for RandomCover and RandomSample
2013-08-29 00:34:42 -07:00
monarch dodra
d6b8a21157
Merge pull request #1501 from AndrejMitrovic/Fix10868
...
Issue 10868 - std.string.translate should have an overload that takes an output buffer.
2013-08-29 00:30:22 -07:00
monarch dodra
9929017a1d
Merge pull request #1523 from blackwhale/locking-text-fix
...
Bugfix: locking text writer dies on .init
2013-08-29 00:02:49 -07:00
k-hara
fbb196c6d9
fix property enforcement
2013-08-29 11:02:52 +09:00
Orvid King
f594980aad
Added a set of unit tests to ensure all branches of encode(E, R) get exercised.
2013-08-28 15:58:17 -05:00
Orvid King
e3ecef9419
Changed an assert to a static assert, to cause an error at compile time rather than runtime,
2013-08-28 15:47:17 -05:00
Dmitry Olshansky
ba9c8fc3bf
fix locking text writer postblit/dtor
...
Both should handle T.init correctly
Fix issue 10898
2013-08-28 23:35:19 +04:00
H. S. Teoh
108e223aa8
Add deprecation date.
...
Improve documentation for new toString.
2013-08-28 09:47:39 -07:00
Andrej Mitrovic
5ec5c213b0
Fixes Issue 10868 - std.string.translate should have an overload that takes an output buffer.
2013-08-28 15:20:05 +02:00
David Nadlinger
40c6760019
Merge pull request #1082 from monarchdodra/emplace
...
Fix emplace
2013-08-28 01:35:15 -07:00
H. S. Teoh
fe75e2da57
Implement toString that supports %f.
2013-08-27 15:06:59 -07:00
growler
dcb634e8a2
issue 10909 toImpl support for bool narrowing conversion. mostNegative support for bool.
2013-08-27 21:05:00 +10:00
monarch dodra
a8250ba5ef
Merge pull request #1524 from eco/patch-4
...
[trivial] Remove documentation quick link to deprecated indexOf
2013-08-27 01:01:16 -07:00
Andrei Alexandrescu
45ea7f08ea
Merge pull request #1485 from blackwhale/ctr-lookback
...
Lookbehind in ctRegex
2013-08-26 15:23:41 -07:00
Brad Anderson
ea2479e4f8
[trivial] Remove documentation quick link to deprecated indexOf
...
indexOf was recently made undocumented to go along with its deprecation. The handwritten quick index link remained though.
2013-08-26 11:52:56 -06:00
monarch dodra
f3e8844b3d
Merge pull request #1522 from quickfur/issue10885
...
Add RefRange to ddoc overview (issue 10885)
2013-08-26 03:38:09 -07:00
Joseph Rushton Wakeling
3bdda604a8
Slightly tone down warning message about value-type RNGs and Random{Cover, Sample}.
2013-08-26 10:51:54 +02:00
Joseph Rushton Wakeling
98a3efb621
Restore Random{Cover, Sample} constructors accepting value-type RNG.
2013-08-26 10:51:54 +02:00
Joseph Rushton Wakeling
691efb167d
Make sure RNGs are passed to Random{Cover, Sample} by ref/auto ref.
2013-08-26 10:51:53 +02:00
Joseph Rushton Wakeling
40ee13749f
Ensure bool[] _chosen is filled with false at start of cover.
2013-08-26 10:51:53 +02:00
Joseph Rushton Wakeling
c000b794a6
Small stylistic tweaks for Andrei :-)
2013-08-26 10:51:53 +02:00
Joseph Rushton Wakeling
a3ead0ac31
Documentation updates for RandomCover and RandomSample.
...
Mostly regarding the statistical safety-related concerns
when passing a specified RNG, plus a few corrections.
2013-08-26 10:51:53 +02:00
Joseph Rushton Wakeling
c06ca0ce09
Unittests for RandomCover and RandomSample should test with all RNG types.
2013-08-26 10:51:53 +02:00
Joseph Rushton Wakeling
8e4b77fb3a
Correct the .save methods for RandomCover and RandomSample.
...
RandomCover and RandomSample should only be save'able if:
* the input is a forward range
* the thread-global RNG rndGen is not being used
* the RNG being used is a forward range.
2013-08-26 10:51:53 +02:00
Joseph Rushton Wakeling
2c9ecb8bd1
Partial fix for Issue 10434 - std.random.RandomSample
...
In line with changes to RandomCover, this patch tweaks
the choice of template parameter and variable names in
order to bring clarity and uniformity to the module.
2013-08-26 10:51:53 +02:00
Joseph Rushton Wakeling
8d9233cf8b
Partial fix for Issues 7067 and 10434 - std.random.RandomCover
...
The existing RandomCover design is fatally flawed because it
requires a RNG as input, which it then copies internally by
value. So, unless the user is smart enough to pass something
like e.g. SomeRNG(unpredictableSeed), there will be unintended
correlations in random behaviour.
This partial fix follows the design of RandomSample in allowing
RandomCover to use the thread-global default RNG rndGen. It
also improves the choice of template parameter and variable
names in line with Issue 10434.
2013-08-26 10:51:53 +02:00
Dmitry Olshansky
c37a5d865a
lookbehind for ctRegex
2013-08-26 12:34:24 +04:00
monarch dodra
69ddf32feb
Merge pull request #1520 from tom-tan/safe-pure-string-removechars
...
Make std.string.removechars @safe and pure
2013-08-26 00:06:44 -07:00
Andrei Alexandrescu
f5e57ee8b5
Merge pull request #1484 from blackwhale/kill-back-eval
...
std.regex: First step to lookbehind in ctRegex
2013-08-25 18:14:49 -07:00
H. S. Teoh
5b3b4b1cdc
Add RefRange to ddoc overview.
2013-08-25 14:05:56 -07:00
monarchdodra
52cadf9f01
Yet another emplace unittest that is fixed
2013-08-25 23:03:54 +02:00
monarchdodra
6d3fe90eb9
reword emplace deprecation message
2013-08-25 22:56:22 +02:00
monarch dodra
fbf8ae203b
make "emplace(singleArg)" safe pure nothrow
2013-08-25 22:56:22 +02:00
monarch dodra
d711117982
emplace: diagn for quals; simplf alias this brnch
2013-08-25 22:56:22 +02:00
unknown
62644dbfd8
Tweak emplace some
2013-08-25 22:56:22 +02:00
unknown
e951b2cf46
Issue 9559 - Range of Nullable doesn't work with std.array.array
2013-08-25 22:56:22 +02:00
unknown
75c935bdf6
Fix spelling
2013-08-25 22:56:22 +02:00
monarch dodra
fa9614988f
Fix emplace
2013-08-25 22:56:22 +02:00
Tomoya Tanjo
927c5914a1
Make std.string.removechars @safe and pure by using implicit conversion
2013-08-25 23:32:04 +09:00
Tomoya Tanjo
3851d825ec
Make std.string.removechars @safe and pure
2013-08-25 22:52:13 +09:00