Commit graph

5750 commits

Author SHA1 Message Date
k-hara
46eef6b58e Supply the lacked local import 2014-04-03 12:37:30 +09:00
Steven Schveighoffer
277b7ce8c0 Merge pull request #2045 from monarchdodra/appenderConstruct
Fix Appender constructor signature
2014-04-01 08:56:53 -04:00
Andrei Alexandrescu
74d394737f Merge pull request #2049 from AndrejMitrovic/Fix5316
std.getopt: Add character-separated elements support for arrays and associative arrays
2014-03-31 23:34:08 -07:00
monarchdodra
6ea7bf2fa7 Fix Appender constructor 2014-03-31 20:21:15 +02:00
monarch dodra
78d84e515a Fix Issue 12494 - to!string(enum) incorrect value 2014-03-31 19:47:48 +02:00
Andrej Mitrovic
9924b7aba5 Fixes Issue 5316 - Add character-separated elements support for arrays and associative arrays. 2014-03-31 18:25:27 +02:00
Dmitry Olshansky
98434a5181 Merge pull request #2052 from monarchdodra/copyAssert
Add asserts in Copy (and remove an enforce)
2014-03-30 23:50:27 +04:00
Dmitry Olshansky
a8c60a9cdb Clarify DDoc of hasElaborateAssign
Split the overly long sentence in two, otherwise
it's easy to miss the point about auto-generation.
2014-03-29 15:50:03 +04:00
monarch dodra
1863cb48f9 Merge pull request #2036 from blackwhale/ctfe-move
Make move CTFEable for simple structs and classes
2014-03-28 18:51:08 +01:00
k-hara
ec661877f5 Fix newly introduced FQN issue caused by 313 2014-03-28 23:40:04 +09:00
Dmitry Olshansky
66fd049ea9 Make move CTFEable for simple structs and classes
memcpy is not CTFEable, so avoid it for structs without
dtor, postblit that can be assigned with plain =.

This leaves as is (compile error in CTFE) structs that contain
immutable/const memebers the fact that moves overwrites such
fields is questionable to begin with.
2014-03-28 00:24:21 +04:00
monarch dodra
dacbef4c98 Add asserts in Copy (and remove an enforce)
Adding extra asserts always helps. As for the enforce, I'm unsure why it was there in the first place: All the other branches simply make the assumption the target is large enough.
2014-03-27 18:49:12 +01:00
Andrei Alexandrescu
cecd745cef Merge pull request #2015 from monarchdodra/emplaceQual
Improve emplaceRef for qualified construction
2014-03-26 18:03:39 -07:00
Dmitry Olshansky
05b60c2492 Merge pull request #1390 from monarchdodra/swapPointsTo
Fixup for 9975: swap and pointsTo
2014-03-27 00:56:49 +03:00
Andrei Alexandrescu
68c6379e46 Merge pull request #2048 from AndrejMitrovic/Fix5228
Issue 5228 - Add GetOptException and document exceptions
2014-03-26 06:02:02 -07:00
monarch dodra
4e4f73b646 Remove pointsTo in move
as well as remove erroneous documentation.
2014-03-25 21:21:33 +01:00
monarch dodra
782441ee1d Fixup for 9975: swap and pointsTo
Fixing 9975 revealed that checking `pointsTo` was creating problems in swap for legitimate use cases.

This is because:
1. pointsTo can sometimes create "false positives"
2. Internal pointing is not outright forbidden, it is just that the runtime is allowed to make the assumption they don't exist.

While swapping aliasing objects is a sign of stink, it should still "just work".
2014-03-25 21:21:33 +01:00
Andrej Mitrovic
2a1df9fc0e Merge pull request #2047 from monarchdodra/12449
Fix Issue 12449 - Undefined format in std.algorithm.max
2014-03-25 11:23:22 +01:00
monarch dodra
3c92edeb3b Merge pull request #2038 from blackwhale/issue-12419
Fix issue 12419: assertion failure in std.utf
2014-03-24 18:51:23 +00:00
Andrej Mitrovic
43248700c6 Remove trailing spaces. 2014-03-24 19:42:47 +01:00
Andrej Mitrovic
f24c49312a Fix Issue 5228 - Add a GetoptException and document which exceptions are thrown. 2014-03-24 18:54:33 +01:00
Andrej Mitrovic
28694ed0dc Strip spaces for the 1000th time. 2014-03-24 18:50:23 +01:00
monarch dodra
aec513e542 Revert 2014-03-24 16:39:56 +00:00
monarch dodra
72d78547cf Update algorithm.d 2014-03-24 16:16:19 +00:00
monarch dodra
7f76f3fc3a Update algorithm.d 2014-03-24 16:13:29 +00:00
Dmitry Olshansky
0f0511f81b fix issue 12419
Test that UTF-8 decoding yields a value in the valid range.
UTF-8 may encode values beyond these covered by [0, 0x10FFFF].
2014-03-24 20:02:51 +04:00
monarch dodra
8370276924 Fix Issue 12449
Undefined format in std.algorithm.max
2014-03-24 13:41:44 +00:00
Andrei Alexandrescu
35617d87b3 Merge pull request #2042 from Safety0ff/fix12446
Fix issue 12446 - std.parallelism.amap: prefer iteration to indexing
2014-03-23 16:00:21 -07:00
safety0ff
fc3cda0beb Fix issue 12446 - std.parallelism.amap: prefer iteration to indexing 2014-03-23 17:34:59 -04:00
Marc Schütz
90262dcffc Remove another use of the comma operator 2014-03-23 15:51:31 +01:00
Jakob Ovrum
bc161b24e6 Enable DDoc for std.uni.byCodePoint
See also #1985
2014-03-23 09:34:09 +09:00
Johannes Pfau
0250969689 Fix pull request #1961: add more hasExceptionTraps checks 2014-03-22 13:32:50 +01:00
Andrei Alexandrescu
423c1b71ef Merge pull request #2035 from MartinNowak/fixCurlDocs
callback uses size_t not double
2014-03-21 10:02:12 -07:00
Martin Nowak
52a180d507 callback uses size_t not double
- Not sure why the curl internal double arguments
  are converted to size_t in the first place though.
2014-03-21 17:05:41 +01:00
Walter Bright
263ac2b092 OutBuffer is now an OutputRange 2014-03-20 18:19:59 -07:00
monarch dodra
be08beb429 Merge pull request #2017 from andralex/datetime
std.datetime: eliminate _assertPred
2014-03-20 18:01:46 +01:00
Andrei Alexandrescu
dd228161ee Merge pull request #2031 from monarchdodra/ScopeBufferConst
Fix DDoc typo.
2014-03-20 08:23:35 -07:00
monarch dodra
b9c2e2fe72 Fix DDoc typo. 2014-03-20 12:03:31 +01:00
Andrei Alexandrescu
2644eb9081 Merge pull request #2028 from Infiltrator/patch-1
Issue 5870 - Debug code in SortedRange assumes it can always print the ...
2014-03-19 21:52:06 -07:00
Infiltrator
3fe27f4cd1 Update range.d 2014-03-20 12:41:21 +11:00
Andrei Alexandrescu
9404dd477f Merge pull request #1970 from monarchdodra/sumseed
Give sum a seed capability
2014-03-19 18:08:06 -07:00
Infiltrator
ee2d46263b Issue 5870 - Debug code in SortedRange assumes it can always print the range 2014-03-20 11:32:51 +11:00
Tomoya Tanjo
afbe687850 Mark std.stdio.File.this, opAssign, open and popen as safe 2014-03-19 22:39:20 +07:00
Andrei Alexandrescu
46e18e1e3f Merge pull request #2026 from tom-tan/trusted-std-stdio-fopen
Mark std.stdio.fopen and popen as trusted
2014-03-19 08:29:02 -07:00
Andrei Alexandrescu
58c9eef77b Merge pull request #2022 from CyberShadow/std-digest-public-import
std.digest: Publicly import LetterCase
2014-03-19 08:28:13 -07:00
Tomoya Tanjo
d7f5c1f287 Mark std.stdio.fopen and popen as trusted 2014-03-19 20:23:50 +07:00
Andrei Alexandrescu
6d244d84f0 Merge pull request #2023 from tom-tan/safe-pure-std-utf-toUTFz
Make std.utf.toUTFz safe and pure
2014-03-18 23:16:35 -07:00
Tomoya Tanjo
4d7ccff58b Make std.utf.toUTFz safe and pure 2014-03-19 11:37:57 +07:00
Vladimir Panteleev
a96223ee10 std.digest: Publicly import LetterCase 2014-03-18 23:22:53 +00:00
Per Nordlöw
d701f90275 Issue 3882: Use cast(void) instead of value capture 2014-03-18 23:50:18 +01:00