Commit graph

11003 commits

Author SHA1 Message Date
Ilya Yaroshenko
b6f03d4b89 Revert "Add new function std.algorithm.iteration : cumulativeSum" 2016-11-10 08:38:43 +02:00
Steven Schveighoffer
d28ef4ec10 Merge pull request #4881 from e-y-e/cumulativeSum
Add new function std.algorithm.iteration : cumulativeSum
2016-11-08 16:35:47 -05:00
Steven Schveighoffer
c41e41d961 Fix grammar nit 2016-11-08 15:51:40 -05:00
Brian Schott
292f35993f Merge pull request #4880 from ntrel/variant-fixes
[docs] Tweak std.variant docs
2016-11-07 13:46:02 -08:00
e-y-e
c5df83f912 Tweak unittests 2016-11-07 18:03:47 +00:00
e-y-e
9a64320e00 Fix documentation errors 2016-11-07 17:39:34 +00:00
e-y-e
aa74a62937 Add std.algorithm.iteration : cumulativeSum 2016-11-07 17:39:34 +00:00
Nick Treleaven
b1d6e9c143 Tweak Variant docs
Avoid unnecessary repetition of current symbol name.
Add LREFs where useful.
Remove fun(T...)(T args) example cited for old std.boxer module.
2016-11-07 10:43:04 +00:00
Nick Treleaven
0258383953 Cleanup visit throws docs, add VariantException LREF
Also fix redundant opening of C-style comment.
2016-11-06 19:09:37 +00:00
ljubobratovicrelja
c312da1888 Added unittest example demonstrating overlapped blocks. 2016-11-05 14:14:12 +01:00
ljubobratovicrelja
946dce263f Added hint in docs about overlapped blocks. 2016-11-05 14:14:12 +01:00
Jonathan M Davis
607a7558c2 Merge pull request #4833 from rcorre/exists_enum
Ensure std.file.exists(StringEnum.name) compiles.
2016-11-05 05:50:38 -07:00
Martin Nowak
0f5b131d0a Merge remote-tracking branch 'upstream/stable' into merge_stable
Conflicts:
        std/traits.d
2016-11-05 12:15:09 +01:00
Basile Burg
9d1fc0750b [TRIVIAL, DDOC] fix issue 16624 - setExtension ddoc comment is strangely formated 2016-11-03 10:09:46 +01:00
Andrei Alexandrescu
fd518eb310 Merge pull request #4883 from Darredevil/issue-8087
Fix Issue 8087 - Improve clarity of std.algorithm documentation
2016-11-01 18:23:34 -04:00
Andrei Alexandrescu
c77869f22e Merge pull request #4882 from somzzz/issue_8799
fix issue 8799
2016-11-01 16:45:49 -04:00
Andrei Alexandrescu
00ce4ed3a1 Merge pull request #4865 from 9il/tohash
fix issue 16609
2016-11-01 13:32:55 -04:00
somzzz
daf4d06d47 fixup 2016-11-01 06:25:46 -07:00
somzzz
e0ca51f9f0 fix issue 8799 2016-11-01 06:14:14 -07:00
Alexandru Razvan Caciulescu
946a46774c Fix Issue 8087 - Improve clarity of std.algorithm documentation 2016-10-31 08:17:06 +02:00
Jonathan M Davis
31dad0c099 Merge pull request #4871 from ntrel/equal-empty-enum
Fix Issue 16628 - std.algorithm.equal for known empty or infinite ranges
2016-10-30 16:11:36 -07:00
Ryan Roden-Corrent
10cd84a5c0 Improve isConvertibleToString docs.
Clarify that it works for enums and add more unittest examples.
2016-10-30 19:02:22 -04:00
Ryan Roden-Corrent
5f346e49dc Document isConvertibleToString.
It was public but undocumented.
2016-10-30 18:57:12 -04:00
Ryan Roden-Corrent
0a685f1daf Ensure std.file.exists(StringEnum.name) compiles.
A string-typed enum passes isSomeString but not isConvertibleToString.
Because isConvertibleToString is used as a template constraint for
std.file.exists, it could not be passed a string-typed enum.

Resolves #16573.
2016-10-30 18:57:11 -04:00
Martin Nowak
8e10b4b0f1 Merge pull request #4877 from DmitryOlshansky/regex-ctfe-disable
[std.regex] Disable Bit-NFA in CTFE
2016-10-28 23:26:39 +02:00
Nick Treleaven
5f32c11969 std.variant : Tweak tryVisit, visit docs
Parameter Handler -> Handlers.
Document inner template functions.
2016-10-27 17:36:21 +01:00
Jack Stouffer
70ae191913 Removed uses of the delete keyword from std.zlib 2016-10-27 16:30:33 +01:00
Jack Stouffer
9d8cb9fda2 Removed uses of the delete keyword from std.mmfile 2016-10-27 16:30:30 +01:00
Jack Stouffer
0fed86c07b Removed uses of the delete keyword from std.internal.math.biguintcore.d 2016-10-26 08:59:44 +01:00
Jack Stouffer
9c4368f52c Removed uses of the delete keyword from std.file 2016-10-26 08:59:44 +01:00
Jack Stouffer
d999c773a1 Merge pull request #4419 from tsbockman/more_traits
Add `Promoted` to `std.traits`.
2016-10-25 18:04:26 +01:00
Dmitry Olshansky
83dce34742 [std.regex] Disable Bit-NFA in CTFE 2016-10-24 22:19:00 +03:00
Martin Nowak
d8ca14c05d Merge pull request #4875 from ZombineDev/patch-7
Resurrect ApplyLeft and ApplyRight's documentation
2016-10-24 09:05:30 +02:00
Martin Nowak
dff5422fa5 Merge pull request #4873 from 9il/stable
️Implicit cast to const slices in case of underlaying range is a pointer.
2016-10-24 08:54:06 +02:00
Martin Nowak
0c41f51281 Merge pull request #4859 from CyberShadow/pull-20161013-075150
Revert #4273 + add test
2016-10-24 08:52:21 +02:00
Petar Kirov
be6571ca37 Resurrect ApplyLeft and ApplyRight's documentation
Also put the signature of `isImplicitlyConvertible` in a comment to make the example more clear.
2016-10-23 23:05:18 +03:00
Nick Treleaven
52a381320f Disallow known empty ranges to be compared against a range with incompatible front 2016-10-22 16:24:18 +01:00
David Nadlinger
cf3134e01c sorting: Avoid using $ on generic ranges
It is not guaranteed to exist even if hasLength is true.
2016-10-22 15:17:07 +01:00
Andrei Alexandrescu
9ad4f0d227 Fix safety checks 2016-10-22 09:20:56 -04:00
Andrei Alexandrescu
9778872ffa Better safety checks 2016-10-21 13:21:41 -04:00
Andrei Alexandrescu
9a8bf131d9 Fix @safe checks 2016-10-21 13:21:41 -04:00
Andrei Alexandrescu
3156509175 Print rng seed upon failure so test can be reproduced 2016-10-21 13:21:41 -04:00
Andrei Alexandrescu
f19c92a1bf topN rewrite 2016-10-21 13:21:41 -04:00
Nick Treleaven
2a45a145e8 Fix Issue 16628 - std.algorithm.equal for known empty or infinite ranges
* If one of the ranges has `Range.empty == true`, we can define `equal`
  even when each `front` is not comparable.
* If one range is infinite and the other defines `length`, return false.
* If both are infinite, cause a compile-time error.
2016-10-20 12:27:32 +01:00
Martin Nowak
336f5c47d2 Merge pull request #4869 from 9il/stable
{please} Implicit cast to const slices
2016-10-19 10:17:09 +02:00
Walter Bright
e333b7ad4e Merge pull request #4864 from MartinNowak/fix16582
fix Issue 16582 - ParameterDefaults fails w/ scope parameter
2016-10-17 11:51:02 -07:00
Steven Schveighoffer
c5d94717b9 Merge pull request #4862 from MartinNowak/parameter_defaults_cruft
remove ParameterDefaults cruft
2016-10-17 08:28:39 -04:00
David Nadlinger
7fe1366ed1 Merge pull request #4870 from DmitryOlshansky/compact-thompson
[std.regex] More compact ThompsonMatcher struct
2016-10-17 02:31:56 +01:00
Dmitry Olshansky
910681ccc9 Merge pull request #4574 from nmtigor/issue_16249
fix issue 16249 - std.signals: disconnect() is unsafe during emit()
2016-10-16 21:51:58 +02:00
Dmitry Olshansky
a2b5649805 [std.regex] More compact ThompsonMatcher struct, some % perf gain 2016-10-16 20:38:06 +03:00