Commit graph

14174 commits

Author SHA1 Message Date
John Colvin
2f2914d7cb
typo in transcode unittest 2019-06-21 15:51:52 +01:00
Kriyszig
c163aeeefc Removed alias 2019-06-21 16:39:52 +05:30
Kriyszig
6da85c4f8c Fix Issue 19987 - Reducing memory used by VariantN
Swapping the fptr and union around will avoid unnecessary padding.
2019-06-21 16:28:06 +05:30
Jason Schroeder
d1c8fb0b69 Increased unittest coverage of std.complex to 100% (#7081)
Increase unit-test coverage of complex.d to 100 percent
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-06-20 11:59:07 +02:00
Martin Nowak
991331a951
Merge pull request #7069 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
2019-06-16 14:32:36 +02:00
Martin Nowak
b42d6291ab Merge remote-tracking branch 'upstream/stable' into merge_stable 2019-06-13 01:06:21 +02: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
Nicholas Wilson
b1413e3cde
function attributes go on the right of function aliases
FuncType is actually `@system` because of this, for some reason it is still `pure` and `nothrow`.
2019-06-11 09:51:32 +08:00
The Dlang Bot
fdbcaedae1
Merge pull request #7061 from Zevenberge/11061-compare-static-and-dynamic-arrays
Variant of an array can be compared with another array
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-06-10 04:47:21 +02:00
The Dlang Bot
315244e203
Merge pull request #7046 from burner/std.format_assert_messages
assert messages for std.format
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-06-10 01:07:56 +02: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
Marco de Wild
613c0b1f72
fix Issue 11061 - Variant of an array can be compared with another array
Fixes 11061
2019-06-06 14:14:20 +02:00
JinShil
3ca8d026b7 std.process.forkChild cannot be inlined 2019-06-05 22:04:56 +09:00
The Dlang Bot
097fdc5b77
Merge pull request #7038 from burner/std.csv_assert_messages
std.csv assert messages
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-30 17:09:09 +02:00
Nicholas Wilson
c8ac791aa9
Merge pull request #7035 from shove70/patch-1
Add powmod() for BigInt operands.
2019-05-30 22:11:52 +08:00
Nicholas Wilson
d0281b7da5
Merge pull request #7034 from burner/std.string_assert_messages
assert messages for std.string
2019-05-30 22:11:13 +08:00
The Dlang Bot
0be618b3fa
Merge pull request #7030 from kubo39/issue-19513
Fix Issue 19513 - Use sched_getaffinity(2) to get the number of CPU cores if abailable
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-28 18:23:16 +02:00
The Dlang Bot
16b1ad6286
Merge pull request #7036 from burner/std.array_assert_messages
assert messages for std.array
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-28 17:15:04 +02:00
The Dlang Bot
49cfec3a68
Merge pull request #7043 from SSoulaimane/fix17141_2
Ternary operator no longer promotes characters to integers [Part 2]
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-28 17:09:12 +02:00
Robert Schadek
e0299a41c8 assert messages for std.format 2019-05-28 11:03:54 +01:00
Robert Schadek
001bfe78dc std.csv assert messages 2019-05-28 08:47:53 +01:00
Andrei Alexandrescu
fb2b57b284 [TRIVIAL] Make link clickable and safe (#7045)
[TRIVIAL] Make link clickable and safe
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-27 17:35:26 +02:00
The Dlang Bot
bc86b6e8e9
Merge pull request #7044 from dukc/controlChar
ControlChar: member name typos
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-27 14:41:55 +02:00
dukc
332cf5b1f3 ControlChar member typos: sI -> si, sO -> so 2019-05-27 14:44:27 +03:00
Atila Neves
6d01400638
Merge pull request #7010 from dukc/controlChar
Added an enumerated type of ASCII control character.
2019-05-27 09:55:32 +01: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
Nicholas Wilson
a460470bb4
Merge pull request #7040 from dkgroot-dlang/region_brk_sbrk
(s)brk support has been removed from DragonFlyBSD
2019-05-26 08:10:59 +08:00
Diederik de Groot
859dc49859 brk support has been removed from DragonFlyBSD
sbrk has been declared deprecated
mmap() is suggested as a replacement for sbrk()
2019-05-26 00:05:32 +02:00
Flying-Toast
40ba89b7f4 add messages to some asserts in std/socket.d 2019-05-25 09:50:32 -04:00
The Dlang Bot
eb4870f18b
Merge pull request #6993 from belka-ew/disable-math-inline-asm
math.d: disable inline asm tests if unsupported
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-25 11:51:31 +02:00
The Dlang Bot
64eac952e3
Merge pull request #7031 from n8sh/bitmanipPopcnt
Use core.bitop.popcnt in std.bitmanip.countBitsSet
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-24 21:27:23 +02:00
The Dlang Bot
f7bc86d7fe
Merge pull request #7028 from wilzbach/import-selective6
Use selective top-level module imports in std.{stdio,string}
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-24 18:35:36 +02:00
Robert Schadek
72d4cc7345 assert messages for std.array
more work on starting to work on dlang/phobos/project/2
2019-05-24 15:02:25 +01:00
Robert Schadek
f3244d58c1 assert messages for std.string
starting to work on dlang/phobos/project/2
2019-05-24 14:46:41 +01:00
Robert Schadek
3fbe0233e3 assert messages for std.getopt 2019-05-24 14:38:06 +01:00
shove
e962cc7ec5
Add powmod() for BigInt operands. 2019-05-24 19:55:56 +08:00
The Dlang Bot
2b94eb88d6
Merge pull request #7032 from n8sh/bitmanipConsolidateImpl
Pare down std.bitmanip's 13 private impl functions to 4
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-24 10:31:51 +02:00
dukc
09b847e1f2 Link to ascii table 2019-05-24 11:03:09 +03:00
Nathan Sashihara
0c376b40c4 constify scalar arguments in std.bitmanip to reduce IFTI template bloat
Fixes Issue 19899 - std.bitmanip.bitsSet should accept const arguments

This also makes `swapEndian` not propagate `const` to its return value
which is arguably an improvement
(see https://github.com/dlang/phobos/pull/6682#discussion_r213024113).
2019-05-24 03:01:38 -04:00
Nathan Sashihara
3be1b14f96 Use core.bitop.popcnt in std.bitmanip.countBitsSet 2019-05-24 02:50:13 -04:00
Nathan Sashihara
1d6e35c8a1 Pare down std.bitmanip's 13 private impl functions to 4 2019-05-24 02:45:39 -04:00
Hiroki Noda
d17f2eb9f2 Fix Issue 19513 - Use sched_getaffinity(2) to get the number of CPU
cores if available

Currently std.parallelism.totalCPUs is implemented by
sysconf(_SC_NPROCESSORS_ONLN) on Posix platoform. However, on GNU/Linux,
usable number of processors may be restricted if a process runs in
container. In case it's better to use sched_getaffinity(2).

ref: http://man7.org/linux/man-pages/man1/nproc.1.html
2019-05-24 14:30:05 +09:00
The Dlang Bot
7972cca21f
Merge pull request #7025 from wilzbach/import-selective2
Use selective top-level module imports in std.{base64,csv,datetime}
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-23 15:59:38 +02:00
The Dlang Bot
7cdd92f544
Merge pull request #7026 from wilzbach/import-selective4
Use selective top-level module imports in std.{functional,getopt,math,net,outbuffer}
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-23 15:08:36 +02: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
b56db9a061 Use selective top-level module imports in std.{functional,getopt,math,net,outbuffer} 2019-05-23 13:20:04 +02:00
The Dlang Bot
c56f686cc7
Merge pull request #7029 from wilzbach/import-selective3
Use selective top-level module imports in std.{typecons,uni,utf}
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-23 13:03:39 +02:00
The Dlang Bot
432556e1ca
Merge pull request #7024 from wilzbach/import-selective
Use selective top-level module imports in std.algorithm
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-23 12:07:47 +02:00