aG0aep6G
26822f44b5
fix issue 20949 - std.range.popFront is unsafe in release mode
2020-06-18 15:15:46 +02:00
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
Iain Buclaw
8a38e6e562
std.range.primitives: Fix static condition for X32 targets
2020-04-16 12:21:16 +02: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
Walter Bright
46daae056b
start making use of isAutodecodableString()
2019-08-12 22:34:38 -07: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
The Dlang Bot
5a4918e312
Merge pull request #7057 from n8sh/inout-front
...
Add `inout` to range.front to reduce template proliferation
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2019-06-12 12:29:24 +02:00
Nick Treleaven
249853bda4
[docs][std.range.primitives] Add links to array range primitives
...
It's important to mention this, particularly so the user notices the auto-decoding overloads.
2019-06-11 16:57:27 +01:00
Nathan Sashihara
e5bae1d839
Add inout
to std.range.front to reduce template proliferation
...
The Win32_64 linker error that prevented this from being included in
PR #6743 no longer occurs in CI.
2019-06-06 18:31:34 -04: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
The Dlang Bot
dba2f10bb8
Merge pull request #7027 from wilzbach/import-selective5
...
Use selective top-level module imports in std.{path,range,regex}
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-23 13:42:16 +02:00
Sebastian Wilzbach
8bc39461aa
Use selective top-level module imports in std.{path,range,regex}
2019-05-23 10:25:16 +02:00
Walter Bright
8d404f9678
hasLvalueElements(): use overloading to detect lvalue
2019-05-20 08:47:50 -07:00
Walter Bright
53bdd83de7
primitives: add scope
2019-05-09 16:26:31 +01: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
Andrei Alexandrescu
f5bf7b222f
Relax const
requirement for empty primitive
...
Refer to discussion in https://forum.dlang.org/post/q7tvg0$2tdn$1@digitalmars.com .
2019-04-06 00:03:04 -04: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
David Nadlinger
6b97ae69d7
std.range.primitive.{Autodecoding -> autodecodeStrings}
...
This follows Phobos naming conventions and is more self-documenting.
2019-03-23 19:32:56 +00:00
Walter Bright
158fb2f656
add std.range.primitives.Autodecoding
2019-03-23 01:57:04 -07:00
Andrei Alexandrescu
43a9cae2d6
Remove redundant constraint from empty() range primitive
2019-03-18 18:45:41 -04: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