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
Mathis Beer
8f24c53ec7
Fix issue 19689: don't use recursive template parameter iteration in std.traits.
...
Pull inner Impl templates out into std.traits so they're only instantiated once.
Use anySatisfy, staticMap instead of manually recursing.
2019-02-22 16:48:48 +01:00
Bastiaan Veelo
9e57523134
toUTF16z cannot be used for LPWSTR.
...
Remove false statement from the documentation. Fixes issue 19151.
2019-02-22 15:52:07 +01:00
Bastiaan Veelo
79043ed54a
Remove underscore.
2019-02-21 12:12:57 +01:00
Simen Kjærås
4cc23fd93a
Fix issue 19686 - sgn is too greedy
2019-02-19 09:27:38 +01: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
The Dlang Bot
0482622900
Merge pull request #6857 from n8sh/issue-15853
...
[Revival of PR 4136] Fix issue 15853 - std.random save methods must be const
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-02-16 07:25:12 +01:00
Bastiaan Veelo
1a33bd1e6f
Fix documentation link.
...
In absence of LREF_ALTTEXT, sacrifice grammatical correctness to get a working link. There is precedence on line 4784.
2019-02-13 09:31:53 +01:00
Bastiaan Veelo
4af6b11d7e
Fix typo in documentation.
2019-02-12 20:11:37 +01:00
Nathan Sashihara
25300d32d1
Fix issue 15853 - std.random save methods must be const
...
Revival of dlang/phobos#4136
2019-02-08 16:52:20 -05: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
The Dlang Bot
e10d6a7e97
Merge pull request #6846 from wilzbach/traits-pure
...
std.traits: use assumePurein the public example
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2019-02-03 18:52:07 +01:00
The Dlang Bot
eab12e48b9
Merge pull request #6847 from wilzbach/forward-cleanup
...
Use moved core.lifetime.forward for std.functional.forward
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2019-02-03 17:52:43 +01:00
Martin Kinkelin
5cc7fc5fb2
std.regex: Fix reassignment of ctRegex wrapper structs
...
Previously, reassigning such a wrapper resulted in the static immutable
Regex!Char global for that pattern (`staticRe`) to be overwritten by the
global for the new pattern (!). Made possible via alias this and the
logical-const hack.
Proposed fix: keep on allowing reassignments (people are already using
them), but just point to another pattern's global. So use a common
Wrapper struct type wrapping a pointer instead of an empty struct type
per pattern.
Bug reported in https://github.com/ldc-developers/ldc/issues/2961 .
2019-02-02 23:03:02 +01:00
Jon Degenhardt
02952b1c9f
Unit test covering std.group.save method
2019-02-01 23:19:42 -08:00
H. S. Teoh
3cf78da259
[dox] Cross-reference .merge and .multiwayMerge.
...
These two functions are related but play two different roles:
std.algorithm.sorting.merge takes a static number of ranges of possibly
disparate types (but compatible elements), and is useful for composing
ranges at compile-time. However, it cannot take a variable number of
ranges at runtime because all ranges must be statically known.
That latter role is played std.algorithm.setops.multiwayMerge, which
takes a range of ranges to merge, and so can merge a variable number of
ranges at runtime. However, because of that, it cannot merge ranges of
disparate types (of compatible elements), and so is unsuitable for
compile-time range composition, unless a workaround like the range class
interface is used.
The docs for these two functions really should cross-reference each
other so that users can more easily find the correct function for their
needs.
2019-02-01 00:13:15 +01:00
The Dlang Bot
7fe854347e
Merge pull request #6849 from quickfur/setdiff-typo
...
[Trivial] Fix typo in SetDifference docs.
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2019-01-31 19:40:07 +01:00
H. S. Teoh
2ccd983fd1
[Trivial] Fix typo in SetDifference docs.
2019-01-31 09:44:03 -08:00
Sebastian Wilzbach
8e68c90d5d
Use moved core.lifetime.forward for std.functional.forward
2019-01-31 15:57:31 +01:00
Sebastian Wilzbach
c1c6c80909
std.traits: use assumePurein the public example
2019-01-31 14:59:02 +01:00
The Dlang Bot
98d74d5c16
Merge pull request #6841 from jondegenhardt/fix-19532-chunkBy-input-range
...
Fix Issue 19532 - chunkBy errors involving non-forward input ranges
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-01-30 07:19:29 +01:00
Jon Degenhardt
b17984059e
Fix Issue 19532 - chunkBy errors involving non-forward input ranges
2019-01-26 23:58:03 -08:00
Cameron Ross
cb627751e3
alias CustomFloat.opCast to get
2019-01-24 01:10:28 -04:00
Cameron Ross
fceed0d725
remove op param from ddoc
2019-01-23 04:57:00 -04:00
Cameron Ross
cae450bbf9
try to fix ddoc
2019-01-21 21:54:04 -04:00
Cameron Ross
e26cec8fdd
alias std.array.Appender.opOpAssign to put
2019-01-21 21:16:08 -04:00
Walter Bright
22c0716e9c
Merge pull request #6835 from WalterBright/uni-addInterval-scope
...
std.uni: add scope to addInterval()
2019-01-20 00:55:51 -08:00
Iain Buclaw
3abe79ed52
Add minimum HPPA support to phobos
2019-01-18 01:41:28 +01:00
Walter Bright
f61d591752
std.uni: add scope to addInterval()
2019-01-15 03:43:30 -08:00
Nathan Sashihara
21120a4972
Fix Issue 19580 - [non-DMD] std.random seed bootstrap: don't count on reading an uninitialized variable being treated as an ordinary read
2019-01-14 02:05:04 -05:00
Mathis Beer
7876c1d48d
Fix issue 19572: Prevent Appender from implicitly calling struct constructors to cast away const.
2019-01-11 16:29:42 +01:00
Walter Bright
233d7d617f
std.random: make dip1000 compliant
2019-01-10 03:33:08 -08:00
The Dlang Bot
0cde9af93b
Merge pull request #6827 from ibuclaw/debugmsgs
...
Don't emit debug messages in non-debug unittest build
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2019-01-05 18:24:32 +01:00
Iain Buclaw
a5751e5b39
std/math.d: Don't emit message saying that test is disabled
2019-01-05 17:16:54 +01:00
Nicholas Wilson
e44bf5d595
Merge pull request #6209 from wilzbach/enum-has-to-string
...
Use enums for hasToString
2019-01-05 10:44:51 +08:00
Iain Buclaw
89b6056c59
std/experimental/typecons.d: Hide pragma(msg) in debug code
2019-01-04 21:20:24 +01:00
Iain Buclaw
8d51519f3f
fix Issue 18519: missing curl + phobos = std.net.curl unittest timing out
...
Disable the std.net.curl tests in the makefile, not the module.
2019-01-03 15:12:44 +01:00
Iain Buclaw
d36b28c3fc
std.net.curl: Shutdown socket before closing in unittest
...
This fixes a thread deadlock that occurs in the test runner if libcurl
is missing.
2019-01-03 00:53:04 +01:00
Iain Buclaw
1dcb92aade
std.net.curl: Check temporary file exists before removing
...
As seen when libcurl cannot be loaded (missing library), the lack of
checking causes a new exception to be thrown while another is inflight.
2019-01-03 00:53:04 +01:00
Sebastian Wilzbach
7d4a086bda
Use enums for hasToString
2019-01-02 14:51:21 +01:00
Martin Nowak
027740061f
Merge remote-tracking branch 'upstream/stable' into merge_stable
2019-01-02 02:44:36 +01:00
Sebastian Wilzbach
13705f53bd
Add a -betterC test for std.typecons.Tuple
2018-12-31 13:02:27 +01:00
Sebastian Wilzbach
c4c72930b8
Avoid injectNamedFields to be codegened
2018-12-31 12:55:24 +01:00
Sebastian Wilzbach
07ea0e0201
Merge pull request #6803 from edi33416/issue_19213
...
Fix Issue 19213 - goto skips declaration of variable in std.algorithm…
2018-12-31 12:53:01 +01:00
The Dlang Bot
c47be25959
Merge pull request #6820 from n8sh/issue-19526-19527
...
Fix Issue 19526 - make RefCounted work in betterC
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2018-12-30 23:32:04 +01:00
Nathan Sashihara
07b45c5528
Fix Issue 19526 - make std.typecons.RefCounted work in betterC
2018-12-30 13:58:25 -05:00
The Dlang Bot
93f1b31fbf
Merge pull request #6799 from TurkeyMan/max_alignment
...
simplify maxAlignment
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-12-29 22:02:49 +01:00