Commit graph

15485 commits

Author SHA1 Message Date
H. S. Teoh
7dae6f3a52 Need to avoid .destroy for interfaces too. 2018-01-17 11:33:33 -08:00
H. S. Teoh
a63f3c8f9c Add test case. 2018-01-17 11:07:26 -08:00
H. S. Teoh
5b04f45571 Fix issue 17440: do not call .destroy on class instances in .nullify. 2018-01-17 11:07:26 -08:00
Jack Stouffer
c9122a534a Added more examples to std.range.put 2018-01-17 13:46:59 -05:00
Basile Burg
7bd984203c non X86 is not modified anymore, X86 primitives not always inlined 2018-01-17 17:43:20 +01:00
Basile Burg
609e462fce clarify the code comments 2018-01-17 17:27:20 +01:00
Sebastian Wilzbach
8becc70da7 Fix CTFE Error: reinterpreting cast from inout(string)*
std/typecons.d(648): Error: reinterpreting cast from inout(string)* to inout(Tuple!(string, string, string))* is not supported in CTFE
std/traits.d(566):        called from here: findSplit(s, "(").asTuple._Tuple_super()
std/traits.d(568):        called from here: adjustIdent("std")
std/traits.d(556): Error: template instance std.traits.fqnSym!(std) error instantiating
std/traits.d(556):        instantiated from here: fqnSym!(traits)
std/traits.d(478):        instantiated from here: fqnSym!(fullyQualifiedName)
std/traits.d(484):        instantiated from here: fullyQualifiedName!(fullyQualifiedName)
std/traits.d(484):        while evaluating: static assert(fullyQualifiedName!(fullyQualifiedName) == "std.traits.fullyQualifiedName")
2018-01-17 12:50:00 +01:00
Sebastian Wilzbach
651c30207e std.algorithm.searching.findSplit returns a named tuple
- `std.algorithm.searching.findSplit`
- `std.algorithm.searching.findSplitBefore`
- `std.algorithm.searching.findSplitAfter`

will return a named tuple tuple instead of an anonymous tuple:
2018-01-17 12:50:00 +01:00
Sebastian Wilzbach
a972e266ed Allow running all unittest with -transition=complex 2018-01-17 11:14:32 +01:00
The Dlang Bot
7471b2ad96
Merge pull request #5943 from wilzbach/slide-reboot
Revive std.range.slide from the dead
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-01-17 10:44:06 +01:00
Sebastian Wilzbach
c8d8fe0c83
Merge pull request #5348 from radcapricorn/forward
forward: single argument, copy const
2018-01-17 09:51:45 +01:00
The Dlang Bot
e4da79f10f
Merge pull request #6040 from quickfur/signbit_sig
Issue 18244: std.math generic functions need to have sig constraints
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-01-17 06:58:15 +01:00
Sebastian Wilzbach
1a94c194c6 Revive std.range.slide 2018-01-17 06:36:46 +01:00
The Dlang Bot
fa0a6192a1
Merge pull request #5951 from acehreli/TaskPool_fold
Fix Issue 18096 - Add fold() to std.parallelism
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-01-17 06:05:48 +01:00
H. S. Teoh
b1402c3cba Fix indentation. 2018-01-17 02:26:23 +01:00
H. S. Teoh
0becf2d2db Sig constraints for approxEqual. 2018-01-17 02:26:23 +01:00
H. S. Teoh
113579ec6b Fix issue 18244: Generic functions in std.math need to have proper sig constraints.
Not having any sig constraints causes needless conflicts with
user-defined numerical types, e.g.:

````
// myNumber.d
module myNumber;
struct MyNumber { ... }
int signbit(T : MyNumber)(T num) { ... }

// usercode.d
import myNumber;
import std.math;
MyNumber num;
auto x = signbit(num); // tries to call std.math.signbit, and fails
````

Add sig constraints to:

* signbit
* isFinite.
* isNormal.
* isSubnormal
* sgn.
* nextafter.
2018-01-17 02:26:23 +01:00
The Dlang Bot
17fbc92d59
Merge pull request #6032 from RazvanN7/Issue_18230
Fix Issue 18230 - multiwayUnion sets wrong pred lambdas
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-16 23:10:54 +01:00
The Dlang Bot
9fe884ddaf
Merge pull request #6016 from wilzbach/fix-18214
Fix Issue 18214 - TemplateOf should return void for non-templated symbols
merged-on-behalf-of: MetaLang <MetaLang@users.noreply.github.com>
2018-01-16 23:03:26 +01:00
The Dlang Bot
1a5bb7a64f
Merge pull request #6037 from JackStouffer/put-docs
Make the Behavior of put with Slices Clearer
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2018-01-16 19:48:57 +01:00
Andrei Alexandrescu
6465d6ea5a
Add duplicates to test data 2018-01-16 12:10:13 -05:00
Andrei Alexandrescu
1ed73fa969
Use UFCS throughout 2018-01-16 12:09:24 -05:00
Andrei Alexandrescu
c1c8e8681e
remove surprising emtpy line 2018-01-16 11:58:56 -05:00
The Dlang Bot
4f8d010f1a
Merge pull request #6026 from JackStouffer/format-guess-length
Optimized format with compile time format strings
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-16 16:59:04 +01:00
Jack Stouffer
6909455910 Make the behavior of put with slices clear 2018-01-16 10:57:21 -05:00
Jack Stouffer
6527cbe107 Optimized compile time formatstring format overloads
Added function to std.format to make an educated guess at the length of the resulting string,
use that data to reserve capacity in the appender before anything is written to it.
2018-01-16 09:30:03 -05:00
The Dlang Bot
76d0ddaff6
Merge pull request #6036 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-01-16 08:24:45 +01:00
Martin Nowak
3a8300a9f6 Merge remote-tracking branch 'upstream/stable' into merge_stable 2018-01-16 04:59:35 +01:00
Sebastian Wilzbach
a139224e33 Build Phobos with -transition=complex 2018-01-16 03:04:35 +01:00
Sebastian Wilzbach
5506b93b6f Remove dependency on deprecated bits of std.math from std.complex 2018-01-16 03:04:35 +01:00
Sebastian Wilzbach
adcf48c405 Mark usage of creal functions as deprecated. 2018-01-16 03:04:35 +01:00
The Dlang Bot
11cd2c212e
Merge pull request #6000 from kinke/tempCString
Slightly simplify std.internal.cstring realloc logic
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-01-16 02:56:31 +01:00
Martin Nowak
a4bee79198
Merge pull request #6035 from growlercab/patch-2
[DOC] Minor update to minElement example
2018-01-16 02:18:24 +01:00
growlercab
347b5a3164 Update searching.d
Minor change to minElement example to remove ambiguity between min element value and min element index.
2018-01-16 02:02:31 +01:00
The Dlang Bot
1932f66e1f
Merge pull request #6028 from quickfur/doc-codepointTrie
Document actual codepointTrie function.
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-01-16 01:46:35 +01:00
Nathan Sashihara
66ede852bf Fix Issue 18239: fillWithMemcpy use memset when T.sizeof == 1 2018-01-15 13:24:27 -05:00
RazvanN7
a4cd3a6542 Fix Issue 18230 - multiwayUnion sets wrong pred lambdas 2018-01-15 16:07:18 +02:00
The Dlang Bot
9785804d71
Merge pull request #5936 from WalterBright/chainTogether
std.parallelism: replace explicit code with Throwable.chainTogether()
merged-on-behalf-of: Walter Bright <WalterBright@users.noreply.github.com>
2018-01-15 09:08:52 +01:00
The Dlang Bot
be225cff9b
Merge pull request #6030 from MartinNowak/rm_stale_comment
remove stale comment
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-01-15 06:31:00 +01:00
Basile Burg
bf2c2e646e remove useless pure attrib 2018-01-14 23:49:21 +01:00
The Dlang Bot
5fc791f77b
Merge pull request #6031 from MartinNowak/missing_doc
missing doc for CurlOption.connecttimeout_ms
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-01-14 23:17:07 +01:00
Martin Nowak
81f56f57f5 missing doc for CurlOption.connecttimeout_ms 2018-01-14 22:43:47 +01:00
Martin Nowak
e31e7293ff remove stale comment 2018-01-14 22:25:32 +01:00
Basile Burg
fa12390b39 prevent deprecetation message about imports + add test from bugzilla 2018-01-14 22:07:17 +01:00
Basile Burg
f2c5ee3bf1 fix issue 14767 - Support CTFE of BigInt under x86 2018-01-14 21:21:36 +01:00
Sebastian Wilzbach
3b8f644e9b
Use markdown in the changelog title 2018-01-14 20:59:04 +01:00
The Dlang Bot
937b38cf9a
Merge pull request #6025 from markus-oberhumer/fix-bigint-mod-uint
Fix issue 18224 - BigInt modulo uint must return long.
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-13 16:24:32 +01:00
The Dlang Bot
d10a9da36b
Merge pull request #6005 from wilzbach/fix-16017
Fix Issue 16017 - package functions show up in std.experimental.allocator.common docs
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-13 15:25:15 +01:00
H. S. Teoh
fe1cad26bb Also document second overload.
Ditto with CodepointTrie type.
2018-01-13 06:03:00 -08:00
Sebastian Wilzbach
2c0adf01bb
Merge pull request #6008 from BBasile/issue-18205
fix issue 7054 - format() aligns using code units instead of graphemes
2018-01-13 09:36:59 +01:00