Commit graph

9040 commits

Author SHA1 Message Date
Matt Kline
aee709b080 Remove array dup from this PR 2015-02-09 22:17:47 -08:00
Matt Kline
cd8b96c032 Add keeEndOfOptions flag to std.getopt
Currently, the endOfOptions separator ("--" by default) is
stripped from args by getopt.  At times it may be advantageous to
keep this separator, such as when your program is forwarding
command line arguments to some other program.

Without this, hacks such as

auto remaining = args.find(endOfOptions);
args = args[0 .. $ - remaining.length];
getopt(args, opts);
args = args ~ remaining;

are needed to achieve the desired behavior.
2015-02-09 20:24:46 -08:00
H. S. Teoh
a8150a9759 Merge pull request #2972 from 9rnsr/enforceProp
fix property enforcement
2015-02-09 10:15:34 -08:00
k-hara
611a9a1b9b fix property enforcement 2015-02-10 01:00:36 +09:00
k-hara
e7b3d834d7 detab and remove trailing whitespaces 2015-02-10 00:56:40 +09:00
Hara Kenji
799fdf81ad Merge pull request #2970 from aG0aep6G/14153
[DDoc] fix Issue 14153 - std.format page displaying incorrectly
2015-02-10 00:17:06 +09:00
anonymous
3886e0ac6c indent 2015-02-09 12:49:27 +01:00
anonymous
d99ad147e4 add missing dl tags 2015-02-09 12:47:58 +01:00
David Nadlinger
3eb366d259 Merge pull request #2967 from quickfur/logger_typo
[trivial] Fix typo in std.experimental.logger docs
2015-02-08 15:42:59 +01:00
H. S. Teoh
6126ae5549 Fix typo 2015-02-07 20:05:44 -08:00
H. S. Teoh
f4a8f62aae Merge pull request #2960 from 9il/poly
poly template
2015-02-07 11:05:34 -08:00
Andrei Alexandrescu
9f6e1c33be Merge pull request #2959 from e10s/patch-7
Fix Issue 14124 - BigInt %= int can return "-0"
2015-02-07 09:43:25 -08:00
Ilya Yaroshenko
62a1db045e poly template
fix unittest

fix unittest

fix spaces
2015-02-07 19:37:09 +03:00
Andrei Alexandrescu
677edcf220 Merge pull request #2965 from JakobOvrum/bigint_nogc
Add @nogc attribute to several BigInt accessor functions
2015-02-07 08:21:44 -08:00
Jakob Ovrum
6a8bcb32e9 Add @nogc attribute to several BigInt accessor functions 2015-02-07 04:03:36 +09:00
Daniel Murphy
041db2d8fa Merge pull request #2804 from Panke/fix-13872
Fix #13872
2015-02-07 05:41:14 +11:00
JakobOvrum
3299c63e75 Merge pull request #2958 from sinkuu/fix_14059_format
Issue 14059 - Formatted write with wrong formatting string
2015-02-06 23:06:38 +09:00
sinkuu
4a0f817304 Use enforceFmt 2015-02-06 21:59:39 +09:00
Andrei Alexandrescu
1d4a341517 Merge pull request #2961 from 9il/log2
fix unittest
2015-02-05 14:11:39 -08:00
Walter Bright
b94d7de35c Merge pull request #2963 from andralex/trusted
Fix read() on posix
2015-02-05 12:58:20 -08:00
Andrei Alexandrescu
9ef022d1fb Merge pull request #2964 from JakobOvrum/find_foreach
Change foreach loop in std.algorithm.searching.find to a for-loop
2015-02-05 08:27:26 -08:00
Jakob Ovrum
e6b0b458cc Change foreach loop in std.algorithm.searching.find to a for-loop 2015-02-05 20:09:29 +09:00
Andrei Alexandrescu
524efa6e76 Fix read() on posix 2015-02-04 22:08:23 -08:00
Robert Schadek
581f6d029a Merge pull request #2957 from 9il/logmdigamma
Log Minus Digamma function
2015-02-04 22:59:19 +01:00
Ilya Yaroshenko
23b17ca082 fix unittest
For future `double` and `float` versions of `log2`.
2015-02-05 00:46:51 +03:00
Ilya Yaroshenko
f201989054 add refs for logmdigamma, digamma 2015-02-04 23:06:00 +03:00
Ilya Yaroshenko
e7bf1cdfa2 Log Minus Digamma function
logmdigamma: fix comprasion

move declarations
2015-02-04 20:51:11 +03:00
e10s
1cabeac6da Fix Issue 14124 - BigInt %= int can return "-0" 2015-02-04 22:15:27 +09:00
sinkuu
8063616929 Issue 14059 - Formatted write with wrong formatting string 2015-02-04 21:10:54 +09:00
Andrei Alexandrescu
4de96a0620 Merge pull request #2954 from burner/variant_documentation_update
variant documentation update
2015-02-03 20:01:55 -08:00
H. S. Teoh
49d345f81a Merge pull request #2955 from burner/range_documentation_update
range documentation update
2015-02-03 12:24:06 -08:00
Robert burner Schadek
087c505b86 range documentation update
* moved examples from comments to unittests
* marked verify unittests as doc unittests and deleted duplication
2015-02-03 16:13:24 +01:00
Robert burner Schadek
b63b286b2b variant documentation update
* moved examples from comments to unittests
 * some tests failed because of old copy paste bugs (fixed)
2015-02-02 23:59:16 +01:00
Andrei Alexandrescu
3395af48ff Merge pull request #2952 from MartinNowak/fix14106
fix Issue 14106 - sort is unsafe in debug mode
2015-02-02 14:11:56 -08:00
Martin Nowak
06fd47ffec fix Issue 14106 - sort is unsafe in debug mode
- need attribute inference to toString delegate
2015-02-02 22:39:13 +01:00
Martin Nowak
b5b1625ef7 fix safety of put primitive 2015-02-02 22:39:13 +01:00
Steven Schveighoffer
8e918f3438 Merge pull request #2944 from andralex/use-after-remove
Avoid use after remove from hashtable
2015-02-02 11:09:36 -05:00
Steven Schveighoffer
e65a331ebd Merge pull request #2951 from MartinNowak/fix14105
fix Issue 14105 - strideImpl fails for 0xFF
2015-02-02 10:42:36 -05:00
Martin Nowak
dcf18a0d20 fix Issue 14105 - strideImpl fails for 0xFF
- bsr(0) returns an undefined result
2015-02-02 13:03:57 +01:00
Robert Schadek
91e37fe0b6 Merge pull request #2947 from andralex/unittest-failures
Unittest failures
2015-02-02 09:36:44 +01:00
Andrei Alexandrescu
accb351b96 Merge pull request #2948 from CyberShadow/pull-20150202-045026
fix Issue 14110 - std.file.read cannot read files open for writing
2015-02-01 22:10:11 -08:00
Andrei Alexandrescu
263c1cd0b5 Merge pull request #2950 from majiang/patch-2
Fix Issue 14111 - Broken DDOC for std.format
2015-02-01 21:37:28 -08:00
majiang
39997524e9 Fix Issue 14111 - Broken DDOC for std.format
<dl> and </dl> were not matching.
2015-02-02 14:35:50 +09:00
Vladimir Panteleev
cb4463fea4 fix Issue 14110 - std.file.read cannot read files open for writing 2015-02-02 04:55:53 +00:00
Andrei Alexandrescu
c0aad5b580 Fix debug build 2015-02-01 12:51:33 -08:00
Andrei Alexandrescu
d2112760e1 Avoid use after remove from hashtable 2015-01-31 19:33:16 -08:00
Andrei Alexandrescu
449ff95df6 Merge pull request #2941 from sinkuu/variant_d
Do not call destructor in VariantN.opAssign if no allowed type requires
2015-01-31 18:54:20 -08:00
sinkuu
797f13f04d Add unittest 2015-02-01 08:42:12 +09:00
Andrei Alexandrescu
86d9365dd3 Merge pull request #2916 from JakobOvrum/cleanup_2724
Cleanup of #2724
2015-01-31 10:44:15 -08:00
Andrei Alexandrescu
c3680e5bf8 Merge pull request #2940 from sinkuu/fix_14041
Fix issue 14041 -  Refused writeln of a fixed size array of chars
2015-01-31 10:43:28 -08:00