MoonlightSentinel
54dbc0668c
Fix Issue 20751 - SortedRange with ref predicate parameters fails
...
isTwoWayCompatible should accept functions with ref parameters.
2020-04-26 00:44:39 +02:00
Steven Schveighoffer
c67e9d1ab9
specify return type for SortedRange.opBinaryRight!"in", as typically one would expect it to be a pointer to an element.
2020-04-19 15:31:28 -04:00
Geod24
04f3979317
Replace 'Issue XXX' with Bugzilla links
...
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
Sebastian Wilzbach
4421a4f157
Fix @betterC testsuite
2020-03-04 16:07:28 -08:00
Adam D. Ruppe
ae93f5317c
Use consistent quickindex wrapper around hand-written list-of-links tables
2020-02-21 21:04:05 -05:00
dukc
c0070582fd
Completed description of PipeOnPop at std.range.tee.
2020-01-30 12:49:40 +02:00
The Dlang Bot
53ba9bb693
Merge pull request #7347 from schveiguy/choosesafe
...
Fix issue 20495 (choose copies unused union member, which is unsafe)
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-01-10 06:45:26 +01:00
Steven Schveighoffer
ae6de5515d
Fix issue 19738. Make trusted parts of ChooseResult.opAssign smaller in case the
...
individual ranges have system opAssign.
2020-01-09 23:54:58 -05:00
Steven Schveighoffer
857543416d
Fix issue 20495. Fixes safety of save function by passing init value of
...
unused union member to ctor. Also simplify the @safe inference.
2020-01-09 22:17:31 -05:00
tastyminerals
200e3ba3f3
Update package.d
2019-12-04 19:57:32 +00:00
tastyminerals
11add0c0b7
Update package.d
2019-12-04 19:44:48 +00:00
tastyminerals
7ac8ac72e4
Bring back "std.range.dropBack" code examples
...
For some reason `std.range.dropBack` **Example** field contains examples from `std.range.drop`. I think removing them from here should bring back the actual ones.
2019-12-04 19:24:10 +00:00
The Dlang Bot
68308f50e0
Merge pull request #7253 from FeepingCreature/fix/issue-20314-passing-const-variables-to-only
...
Fix issue 20314: pass `only` parameters by value
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-11-22 03:29:22 +01:00
dukc
25d3b4b21c
Made SortedRange verifications conditionally compiled.
...
Those verifications broke SortedRange with -betterC even when they were off.
2019-11-13 11:15:22 +02:00
Mathis Beer
f806629e30
Fix issue 20314: pass only
parameters by value
2019-10-24 14:26:09 +02:00
Berni
58c3a75738
Fix Issue 15230 - Inconsistent std.range.SortedRange predicate checks
2019-09-29 19:39:05 +02:00
JinShil
0de2d66760
Replace hash_t
and sizediff_t
with size_t
and ptrdiff_t
2019-08-31 04:39:57 +09:00
Martin Kinkelin
7653e97a32
Rewrite dubious refRange() shortcuts in unittests
...
As preparation for dlang/dmd#10124 , which makes elements of array
literals rvalues.
2019-08-15 18:54:08 +02:00
Martin Nowak
d2e931f149
Merge remote-tracking branch 'upstream/stable' into merge_stable
2019-08-05 08:51:49 +02:00
Geod24
808cdd6f34
std.range.enumerate should work with a non-mutable start index
...
The deduced type for `Enumerator` could contain type modifier
(`const`, `immutable`), but the type was used directly as
a state variable.
2019-07-29 14:02:08 +09:00
David Gileadi
775bcdee51
Turn on -preview=markdown
2019-07-04 10:28:30 -07:00
سليمان السهمي (Suleyman Sahmi)
55328d6ef5
Ternary operator doesn't promote characters to integers anymore
2019-05-26 05:17:39 +00:00
سليمان السهمي (Suleyman Sahmi)
6a6dff4004
Ternary operator doesn't promote characters to integers anymore
2019-05-26 03:10:52 +00:00
Sebastian Wilzbach
8bc39461aa
Use selective top-level module imports in std.{path,range,regex}
2019-05-23 10:25:16 +02:00
Martin Nowak
8430584344
fix Issue 19777 - SortedRange.opSlice should infer safety
...
- unittests did fail with DIP1000 due to missing return scope
inference in chained range, thus leading to a scope violation
which prevented `@safe` inference
- fixed unittests by adding return scope to chain.Result
- would still fail under dip1000 with other ranges that
miss return scope on their opSlice
- should not have any effect on non-DIP1000 usage
2019-04-28 14:24:03 +02:00
Sebastian Wilzbach
d2753fda5f
Merge remote-tracking branch 'upstream/stable' into merge_stable
2019-04-14 12:55:19 +02:00
aG0aep6G
98ddb30ea5
fix buildkite build
...
This works around some compiler bug that would manifest as undefined
symbols.
2019-04-12 18:40:17 +02:00
Sebastian Wilzbach
5c3f7f5783
Merge remote-tracking branch 'upstream/stable' into merge_stable
2019-04-09 18:45:49 +02:00
aG0aep6G
5d3fba6dbb
fix safety of ChooseResult.save
2019-04-09 16:00:41 +02:00
aG0aep6G
b8610beec3
use constructors instead of move
2019-03-31 15:25:03 +02:00
Rainer Schuetze
2e13c10025
add workaround for https://issues.dlang.org/show_bug.cgi?id=2396 to reduce compile time of unittests
2019-03-29 12:12:53 +01:00
aG0aep6G
aeea9598bd
make roundRobin
compatible with RefRange
...
Part of a series on issue 18657.
2019-03-26 21:42:21 +01:00
aG0aep6G
3ef957baf5
make cycle
compatible with RefRange
...
Part of a series on issue 18657.
2019-03-26 21:40:40 +01:00
aG0aep6G
be9020a369
make choose
compatible with RefRange
...
Part of a series on issue 18657.
2019-03-24 15:19:51 +01:00
aG0aep6G
b1b8b7968f
make chain
compatible with RefRange
...
Part of a series on issue 18657.
2019-03-24 15:19:51 +01:00
Walter Bright
a7a847013e
ChooseResult: use of unions need to be @trusted
2019-03-14 19:08:05 -07:00
Walter Bright
0855194862
std.range.package.d dip1000
2019-03-04 01:59:04 -08:00
The Dlang Bot
842317afa5
Merge pull request #6871 from WalterBright/only-return
...
range.only() returns its parameters
merged-on-behalf-of: Walter Bright <WalterBright@users.noreply.github.com>
2019-02-22 23:05:47 +01:00
Walter Bright
0d6adfb4a1
range.only() returns its parameters
2019-02-22 12:50:43 -08:00
The Dlang Bot
3fb2483ff2
Merge pull request #6865 from jondegenhardt/padright-code-coverage
...
Fix issues 19042, 19681 - std.range.padRight bugs
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-02-18 15:09:26 +01:00
Walter Bright
d6b4093853
SortedRange.opSlice() should be return scope
2019-02-17 03:35:53 -08:00
Jon Degenhardt
699eda195a
Fix issues 19042, 19681 - std.range.padRight bugs
2019-02-17 00:28:44 -08:00
Jon Degenhardt
9f545db860
Fix issues 19644, 19647 - std.range.takeOne.opSlice bugs ( #6853 )
...
Fix issues 19644, 19647 - std.range.takeOne.opSlice bugs
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2019-02-08 17:06:53 +01:00
Nicholas Wilson
46e0074f03
Don't shorten the width of the iteration variable
2018-11-11 14:33:26 +08:00
Martin Nowak
a8e9857756
fix Issue 19337 - cannot call std.algorithm.sort twice
...
- introduced with #6535 which stripped nested SortedRange types
in assumeSorted, thus causing a mismatch between the return type
of sort (SortedRange!(SortedRange!R)) and assumeSorted SortedRange!R
- fix by stripping nested SortedRange types in the SortedRange!R
template instantiation
2018-11-05 15:43:25 +01:00
devel
aaa00b7232
Fix Issue 19289 - std.range.transposed with enforceNotJagged not throwing
2018-10-06 10:53:31 -04:00
Iain Buclaw
fd5facfe04
posix.mak: Enforce whitespace before opening parenthesis for version conditions
2018-09-22 16:57:24 +02:00
Martin Nowak
f8bd6e7c14
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-08-06 18:25:48 +02:00
Sebastian Wilzbach
fc2a1d0e11
Fix Issue 19082 - Cannot inline "...Slides.numberOfFullFrames", "...Slides.gap"
2018-07-29 15:29:40 +02:00
Sebastian Wilzbach
785b9bb39d
Merge pull request #6642 from JinShil/fix_197107
...
Fix warning in std.range.package - calling without side effects discards return value
2018-07-26 11:23:51 +02:00