Commit graph

15296 commits

Author SHA1 Message Date
MetaLang
47fa4b8685
Remove extraneous whitespace 2017-11-22 16:16:25 -04:00
Eduard Staniloiu
df72d45c7c Make allocators expand safe 2017-11-22 19:51:12 +02:00
Kevin De Keyser
6d95cc200d
Changed to a char tuple for the unittest 2017-11-22 16:58:13 +01:00
Kevin De Keyser
77ac8f1622
Made a unittest independent of IEEE floating point control
Converting a double to a string doesn't work for all rounding modes.
I propose storing the rounding mode before doing the unittest, which changes the unittest from @safe to @system.
2017-11-22 15:32:26 +01:00
Kevin De Keyser
2395a9ef98
Fixed a rounding mode error in a unit test. 2017-11-22 15:06:31 +01:00
The Dlang Bot
eb3c39048a
Merge pull request #3892 from JackStouffer/mean
Add mean to std.numeric
merged-on-behalf-of: unknown
2017-11-22 05:18:03 +01:00
Jack Stouffer
b5572e8f31 Fix issue 14034: Add mean to Phobos 2017-11-21 18:23:12 -05:00
The Dlang Bot
4e197f2263
Merge pull request #5870 from wilzbach/std-concurrency-tests-2
Issue 17127 - bad example code for std.concurrency.Generator
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-11-21 21:19:28 +01:00
The Dlang Bot
284e5210ed
Merge pull request #5867 from Biotronic/issue17995
Fix issue 17995
merged-on-behalf-of: Martin Nowak <code@dawg.eu>
2017-11-21 20:27:42 +01:00
Martin Nowak
eb6e63aad1 use proper partion-and-conquer for NoDuplicates
- partition NoDuplicates as well as EraseAllN
- factor out EraseAllN to optimize compile time/mem
2017-11-21 18:59:08 +01:00
The Dlang Bot
a7953301bc
Merge pull request #5872 from wilzbach/std-concurrency-tests-1
Issue 17127 - bad example code for std.concurrency.Generator
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-11-21 18:38:05 +01:00
The Dlang Bot
69851d7b15
Merge pull request #5878 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-21 17:56:37 +01:00
Sebastian Wilzbach
5df663ead1 Issue 17127 - bad example code for std.concurrency.Generator 2017-11-21 17:06:53 +01:00
Sebastian Wilzbach
d2e716b20e Issue 17127 - bad example code for std.concurrency.Generator 2017-11-21 15:00:07 +01:00
Sebastian Wilzbach
8bf4afa477
Merge pull request #5875 from ZombineDev/better-std-concurrency-example-1
Improve std.concurrency.receiveOnly example
2017-11-21 14:56:19 +01:00
The Dlang Bot
30df763573
Merge pull request #5835 from nemanja-boric-sociomantic/fibergenerator
Add std.concurrency.Generator overload to accept Fiber's stack guard'…
merged-on-behalf-of: Martin Nowak <code@dawg.eu>
2017-11-21 14:19:40 +01:00
Martin Nowak
4024b1250d Merge remote-tracking branch 'upstream/stable' into merge_stable 2017-11-21 14:10:41 +01:00
Mathis Beer
f824bf45e1 fix minor style issue 2017-11-21 10:44:00 +01:00
Mathis Beer
8faf51f363 use = T.init instead of = void because it's @safe 2017-11-21 10:43:51 +01:00
The Dlang Bot
f61104e118
Merge pull request #5877 from dlang/JackStouffer-patch-1
Add secureEqual to the digest booktable
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-11-21 07:54:35 +01:00
Jack Stouffer
8ca4bf715c
Add secureEqual to the digest booktable 2017-11-20 22:46:43 -05:00
Alexandru Jercaianu
d7479b7964 Added AscendingPageAllocator
remove trailing whitespace
2017-11-21 01:01:04 +02:00
ZombineDev
028581f9f1 Improve std.concurrency.receiveOnly example
* Make example a DDoc-ed unittest
* Show receiving scalars, as well as tuples
2017-11-21 00:13:55 +02:00
The Dlang Bot
711291c922
Merge pull request #5866 from dlang/JackStouffer-patch-1
Add the new findSkip overload to the change log
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-11-20 17:56:54 +01:00
Simen Kjærås
a6e9b151fe Fix issue 17995 2017-11-20 16:34:52 +00:00
The Dlang Bot
5b7ceffa05
Merge pull request #5869 from wilzbach/do-body
Replace `body` keyword with its replacement: `do`
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-20 17:20:16 +01:00
The Dlang Bot
d15447fb44
Merge pull request #5147 from wilzbach/static_if_std_algorithm_comparison
[Static if] Replace overload constraints with static if (comparison.d)
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-11-20 16:41:02 +01:00
Sebastian Wilzbach
85ec5dead5 Manually fix Allman brace style 2017-11-20 15:45:04 +01:00
Sebastian Wilzbach
c47c950d84 Manually replace body with do in std.parallelism 2017-11-20 15:33:52 +01:00
Sebastian Wilzbach
df6365092a Replace body keyword with its replacement: do
Automatic replacement with

    sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
Sebastian Wilzbach
5c77d8595c Update libdparse to v0.7.2-alpha.3 2017-11-20 15:33:52 +01:00
The Dlang Bot
3a2acacb4d
Merge pull request #5868 from MartinNowak/fix17996
fix Issue 17996 - don't build libphobos2.a with PIC for i386
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-11-20 15:30:23 +01:00
The Dlang Bot
0bee7927b9
Merge pull request #5874 from wilzbach/update-dscanner
Update dscanner
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-11-20 15:03:49 +01:00
Sebastian Wilzbach
97a2c88175 Move public unittest below their respective declaration 2017-11-20 14:17:41 +01:00
Sebastian Wilzbach
5ea7a67cfb Update DScanner 2017-11-20 14:16:34 +01:00
Sebastian Wilzbach
171e81d689 [Static if] static_if_std_algorithm_comparison 2017-11-20 13:51:05 +01:00
Jack Stouffer
37e3f68e5f Add the new findSkip overload to the change log 2017-11-20 13:32:54 +01:00
Martin Nowak
1f1efea282 fix Issue 17996 - don't build libphobos2.a with PIC for i386
- use MODEL=64/32 to decide on default
- allow overriding default with explicit PIC=0/1 make args
2017-11-20 12:50:23 +01:00
Martin Nowak
63ad7ae10c Revert "Merge pull request #5586 from wilzbach/fpic-by-default"
This reverts commit d400af081a, reversing
changes made to 762044e486.
2017-11-20 12:41:07 +01:00
The Dlang Bot
7a2732e4b0
Merge pull request #5577 from wilzbach/algorithm-find-skip
Provide pred-only overload to std.algorithm.searching.findSkip
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-11-20 00:47:38 +01:00
The Dlang Bot
43c494261b
Merge pull request #5865 from jmdavis/elaborate
Simplify hasElaborateConstructor.
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-11-19 22:54:32 +01:00
Jonathan M Davis
87fbbbc390 Simplify hasElaborateConstructor.
__postblit represents a directly declared postblit constructor, but any
struct which either has a postblit constructor or which has a member
which has a postblit constructor will have __xpostblit. So, we should
only need to check for __xpostblit instead of recursively checking all
of the member variables for __postblit.
2017-11-18 22:57:03 -07:00
MetaLang
67e853607e
More precisely define what this overload returns 2017-11-19 00:33:35 -04:00
MetaLang
dd70c998f7
Change comment as requested by Andrei 2017-11-19 00:31:13 -04:00
The Dlang Bot
1649edd483
Merge pull request #5862 from jercaianu/krr
Fix Issue 16564 - KRRegion.empty sometimes returns Ternary.no
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-19 03:40:51 +01:00
The Dlang Bot
15d023e5a3
Merge pull request #5864 from dlang/andralex-patch-1
Avoid subtraction of pointers to different types
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-11-19 01:43:58 +01:00
Alexandru Jercaianu
f130ff0628 minor refactor for regionMode 2017-11-18 21:11:00 +02:00
Andrei Alexandrescu
e02fb7e60a
Avoid subtraction of pointers to different types
See also https://github.com/dlang/dmd/pull/7332
2017-11-18 11:49:53 -05:00
The Dlang Bot
9599832755
Merge pull request #5696 from dukc/arrayOverlaps
std.array.overlap made ctfe:able and redocumented.
merged-on-behalf-of: unknown
2017-11-17 21:00:39 +01:00
Sebastian Wilzbach
42236b711d Provide pred-only overload to std.algorithm.searching.findSkip 2017-11-17 17:45:46 +01:00