Berni
e82b773fb0
Replace magic constants by constants named after specs
2019-09-27 17:49:16 +02:00
The Dlang Bot
d9c950af6a
Merge pull request #7199 from crocopaw/zip4
...
std.zip: Update and correct main documentation
merged-on-behalf-of: Vladimir Panteleev <CyberShadow@users.noreply.github.com>
2019-09-26 23:59:11 +02:00
The Dlang Bot
b36652a3e9
Merge pull request #7180 from crocopaw/approxEqual
...
Clearer documentation for approxEqual
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-09-26 16:40:20 +02:00
Berni
9f816b7ce6
Update and correct main documentation
2019-09-26 16:37:52 +02:00
Berni
250db069ef
Remove posix only unittest relying on presence of unzip untility.
2019-09-26 11:54:00 +02:00
Bastiaan Veelo
9419f57348
Make task() example compilable.
...
This example seems to not have worked ever.
You cannot create a delegate to an uninstantiated template function, and for the task() template function to be able to deduce a
function, all optional parameters to read() need to be given.
The delegate issue is kind of obvious. The default parameter issue I don't know whether is a compiler limitation that could be lifted or not.
These fixes make the example less pretty, especially compared to the example of the other overload of task(), but is it how it is.
Runnable variant: https://run.dlang.io/is/WAns8z (not for publication)
2019-09-25 11:43:13 +02:00
Andrej Mitrovic
6726f03214
FiberScheduler: Make the stack size configurable
...
This makes the create() method protected to enable
spawning a fiber with a custom stack size.
The InfoFiber class has been made protected to
allow instantiating it in subclasses.
2019-09-25 10:23:42 +09:00
The Dlang Bot
feae48daf1
Merge pull request #7165 from thaven/unconst
...
Add Unconst to std.traits
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-09-23 11:53:59 +02:00
Robert burner Schadek
6786e4228e
Geod24 typo fixes
2019-09-21 15:12:25 +01:00
Robert Schadek
a670c53592
adds assert messages to std.container.dlist
2019-09-20 12:30:32 +08:00
The Dlang Bot
eb35b3fe19
Merge pull request #7186 from crocopaw/stopwatch
...
Fix issue 20145 - Random unittest failures in std.datetime.stopwatch
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-09-19 06:01:17 +02:00
Berni
36ac5614ef
Fix issue 20145 - Random unittest failures in std.datetime.stopwatch
2019-09-17 16:23:51 +02:00
Mathis Beer
70c8d50948
Fix issue 20218: format: don't try to print the entire range while merely testing the format string
2019-09-17 15:07:37 +02:00
The Dlang Bot
f8196e626f
Merge pull request #7184 from WalterBright/bigintError
...
bigint.d: replace Error with assert()
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-09-13 10:11:37 +02:00
The Dlang Bot
897ff6e8ff
Merge pull request #7183 from WalterBright/arrayError
...
array.d: replace Error with assert()
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-09-13 08:31:23 +02:00
Walter Bright
b1638b116b
bigint.d: replace Error with assert()
2019-09-12 23:21:37 -07:00
Walter Bright
e7aa772fb5
array.d: replace Error with assert()
2019-09-12 22:32:00 -07:00
Berni
e6b5c68b4b
Fix issue 20205 - std.math: Wrong result for abs(int.min)
2019-09-12 20:57:42 +02:00
The Dlang Bot
ee30e07854
Merge pull request #7177 from n8sh/issue-20199
...
Fix issues 20199 & 20200: make std.math.frexp & isPowerOf2 work in CTFE
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-09-10 16:48:31 +02:00
The Dlang Bot
1160d7bd39
Merge pull request #7178 from n8sh/issue-20201
...
Fix Issue 20201 - Make std.math.scalbn pure
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-09-10 09:02:05 +02:00
The Dlang Bot
cd1a9601ff
Merge pull request #7175 from n8sh/issue-20196
...
Fix Issue 20196 - Make std.math.isNormal work in CTFE
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-09-10 04:38:29 +02:00
Berni
22d4ca5748
Rearrange and add unittests
2019-09-09 21:09:55 +02:00
Berni
16912a3893
Change documentation to make the purpose more clear.
...
a) Make clear, that fullfilling one criterium is enough
b) Make clear, that the function is not symmetric.
2019-09-09 21:09:55 +02:00
Berni
0d2f54ba31
Remove misleading comments in unittests for approxEqual
2019-09-09 18:21:37 +02:00
Berni
dc22eb3c17
Remove duplicate unittest for approxEqual
2019-09-09 18:21:37 +02:00
Berni
5afe334b11
Refactor approxEqual, removed superfluous overload
2019-09-09 18:21:29 +02:00
Nathan Sashihara
e45ac910a2
Fix issues 20202 & 20203 - Make std.math.signbit and copysign work in CTFE
2019-09-08 16:38:55 -07:00
Nathan Sashihara
e7609cb873
Fix issues 20199 & 20200: make std.math.frexp & isPowerOf2 work in CTFE
2019-09-08 15:13:01 -07:00
Nathan Sashihara
083a0ac743
Fix Issue 20201 - Make std.math.scalbn pure
2019-09-08 13:13:46 -07:00
Nathan Sashihara
5fbe3b4ca1
Fix Issue 20196 - Make std.math.isNormal work in CTFE
2019-09-08 07:51:10 -07:00
Berni
a21bfbdab6
Fix issue 19514 - gcd(BigInt(2), BigInt(1)) fails
2019-09-07 21:38:48 +02:00
Nathan Sashihara
ce3e7f6dbb
Fix Issue 20147 - Enable comparison (==, >, >=, <=, <) between std.bigint.BigInt and floating point numbers
2019-09-05 22:41:08 -07:00
The Dlang Bot
b37e91944a
Merge pull request #7169 from n8sh/issue-17705
...
Fix Issue 17705 - std.math.isFinite cannot run at compile-time
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2019-09-05 07:44:24 +02:00
Nathan Sashihara
3586763213
Fix Issue 20192 - Make std.math.isSubnormal work in CTFE
2019-09-04 13:10:33 -07:00
Nathan Sashihara
a26d88c16f
Fix Issue 17705 - std.math.isFinite cannot run at compile-time
2019-09-04 12:31:47 -07:00
Harry T. Vennik
d6256037e1
Add Unconst to std.traits
2019-09-01 11:13:26 +02:00
Vladimir Panteleev
fe87dc7c42
Fix Issue 20186 - File size of "Hello, world" executable increased by 185KB
...
We can delay the std.format import until the relevant templates are
instantiated.
2019-09-01 03:24:17 +00:00
aG0aep6G
018e93cc3e
avoid appender
in formatElement
for strings
...
On the downside, the new code loops twice over the source
string, meaning it `decode`s every character twice.
On the upside, it writes only one time to memory, avoiding one
or more allocations and a copy from the temporary buffer to the
actual destination.
2019-08-31 22:51:11 +02:00
aG0aep6G
e13a397c61
avoid generating a closure in sformat
2019-08-31 22:28:12 +02:00
JinShil
0de2d66760
Replace hash_t
and sizediff_t
with size_t
and ptrdiff_t
2019-08-31 04:39:57 +09:00
Mike
b3416948d9
Replace sizediff_t
with ptrdiff_t
in std.random.d
2019-08-30 17:38:39 +09:00
Nicholas Wilson
4acd38d98a
Merge pull request #7149 from BoQsc/patch-1
...
std.net.curl: Fix example in HTTP documentation
2019-08-30 13:25:15 +08:00
Martin Kinkelin
fe38be185b
Fix std.variant unittest
...
Accomodate for the fact that a `VariantN!24` without explicit allowed
types is at least `real` aligned, and that can be 8 on some platforms
(e.g., 32-bit Windows for LDC with 64-bit `real`), so that the size is
aligned up to `24+4 + /*padding*/ 4 = 32`.
2019-08-29 18:29:35 +03:00
Nathan Sashihara
ef29e25985
Issue 20159 Followup - fix ldc-win32 test failure
...
https://github.com/dlang/phobos/pull/7153#issuecomment-524536212
2019-08-24 02:46:58 -07:00
Nathan Sashihara
7887d042e6
Fix Issue 20159 - Make std.math.scalbn work in CTFE
2019-08-23 20:52:26 -07:00
Vladimir Panteleev
02b97f851c
Add missing punctuation
2019-08-21 14:30:31 +00:00
Feldwor
6a6b09d176
Add one line of "Example:" Label
2019-08-21 10:44:50 +03:00
Feldwor
e0cc331eb5
Move out comment to outer for consistency
2019-08-21 10:23:47 +03:00
Hiroki Noda
682544575f
std.process: use local imports
...
In current phobos policy, local imports should be preferred over global
imports.
2019-08-21 09:35:00 +09:00
Feldwor
9c62374c56
Asterisk mistake
...
Co-Authored-By: Vladimir Panteleev <CyberShadow@users.noreply.github.com>
2019-08-20 19:50:08 +03:00