Commit graph

258 commits

Author SHA1 Message Date
Per Nordlöw
d701f90275 Issue 3882: Use cast(void) instead of value capture 2014-03-18 23:50:18 +01:00
Andrei Alexandrescu
be185a4de7 Merge pull request #1975 from nordlow/warn-unused-returns
Issue 3882: Add warning for unused returns of strictly pure function calls
2014-03-09 12:10:44 -07:00
Per Nordlöw
275db682a5 Issue 3882: Explicitly capture return values for strictly pure functions returning non-void 2014-03-09 18:55:07 +01:00
Peter Alexander
8d9479c3a4 Fix Issue 12315 - array at compile-time with all types
Problem was that `emplaceRef` calls `memcpy` for some types, which is unsafe and unavailable at compile time.

https://d.puremagic.com/issues/show_bug.cgi?id=12315
2014-03-09 14:08:32 +00:00
Yazan S. Dabain
bda0f5a578 [Trivial] Fix documentation typos in std.array 2014-02-28 10:46:58 +02:00
monarchdodra
c7d98fd96d Remove useless lambda 2014-02-18 22:58:28 +01:00
monarchdodra
8f71c4e59a Cleanup emplace useage for emplaceRef 2014-02-16 17:04:34 +01:00
Andrej Mitrovic
7330607afe Merge pull request #1865 from CyberShadow/std-array-join-const
std.array: Allow joining constant arrays
2014-02-16 01:11:59 +01:00
monarch dodra
b16a3ed609 Add note about CTFE/pure issue 2014-02-13 22:19:18 +01:00
monarchdodra
3e97991dc7 Fixup [un|minimally]InitializedArray
Solves:
* http://d.puremagic.com/issues/show_bug.cgi?id=9803 : minimallyInitializedArray fails past "1D" depth
* http://d.puremagic.com/issues/show_bug.cgi?id=10637 : minimallyInitializedArray: postblit on non-initialized
* http://d.puremagic.com/issues/show_bug.cgi?id=10847 : uninitializedArray accepts arguments which make it fail internally

Improvements also include:
* Documented as nothrow, and weakly pure.
* Works with 0 args (returns an empty slice).
* All args are pre-emptivelly changed to size_t, to avoid template over-instantiation.
2014-02-13 22:19:18 +01:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
Vladimir Panteleev
ce7d4ed26a std.array: Allow joining constant arrays 2014-01-16 14:33:22 +00:00
Daniel Murphy
19ee4d3851 Merge pull request #1843 from monarchdodra/whiteTrim
Remove trailing white and tabs
2014-01-12 05:14:42 -08:00
Brad Anderson
515de4f2a2 Document that replaceSlice returns a new array 2014-01-10 21:05:12 -07:00
monarchdodra
44fe3d88f7 Remove tabs 2014-01-08 08:37:52 +01:00
Andrei Alexandrescu
06352bc88f Fix Issue 6730 2013-12-29 14:26:32 -08:00
Tomoya Tanjo
d9dc269747 Make std.array.insertInPlace @safe for some cases 2013-12-16 20:56:23 +09:00
Daniel Murphy
1818d190b5 More implicit array to bool 2013-12-15 19:55:34 +11:00
Daniel Murphy
522b551ccf Don't call dup on a type 2013-11-18 22:09:27 +11:00
Jonathan M Davis
d408470f8f Merge pull request #1502 from monarchdodra/splitterPred
Fix splitter!pred and splitter(string)
2013-11-17 18:10:03 -08:00
monarch dodra
ec5e25b796 Merge pull request #1695 from rainers/issue_11528
fix issue 11528: crashes or undefined behaviour of appender's first allocation
2013-11-17 04:13:50 -08:00
Rainer Schuetze
cc548fe9cb fix appenderNewCapacity for curLen == 0, start with minimum of 8. 2013-11-17 12:11:12 +01:00
monarchdodra
4583a87031 Correct english in documentation 2013-11-14 21:53:11 +01:00
monarchdodra
f0a7d82e30 more splitter unittests 2013-11-13 22:36:39 +01:00
monarchdodra
7c79bfa677 Fix remaining splitter issues 2013-11-13 22:22:05 +01:00
monarchdodra
60a54e7af5 Fixes splitter!pred and splitter(string) 2013-11-13 22:22:05 +01:00
monarchdodra
b207491613 fix reg in appender 2013-11-08 20:47:55 +01:00
David Nadlinger
52c6ecf427 Merge pull request #1655 from monarchdodra/arrayEmplace
Remove conditional emplace call
2013-10-29 08:18:38 -07:00
monarch dodra
99100cf9ac Remove explicit pure 2013-10-29 10:58:40 +01:00
Andrei Alexandrescu
f9712aae6f Merge pull request #1529 from monarchdodra/appenderEmplace
Fix appender form elaborate assign types
2013-10-26 20:31:49 -07:00
Andrej Mitrovic
6c794801c4 Merge pull request #1477 from monarchdodra/splitwhite2
std.array.split Unicode correctness
2013-10-24 14:25:12 -07:00
Andrej Mitrovic
693ccb171d Merge pull request #1410 from monarchdodra/AppenderCapacity
Appender.reserve: Overzealous and wrong
2013-10-23 18:33:24 -07:00
monarchdodra
e5c936adfb Remove conditional emplace call 2013-10-20 16:04:09 +02:00
David Nadlinger
3253eb6d3b Merge pull request #1528 from monarchdodra/arrayEmplaceFixup
Fixup unittest following emplace fix
2013-10-08 05:38:55 -07:00
unknown
4b2390eb0b Making split unicode correct
Also marked as safe, but not pure (because of the foreach body)
2013-10-08 08:50:29 +02:00
David Nadlinger
99f05dad4e Merge pull request #1575 from tom-tan/safe-unittest-array-minimallyInitializedArray
Mark the unittest for std.array.minimallyInitializedArray as @safe
2013-10-02 09:21:56 -07:00
monarch dodra
55ec22276b Merge pull request #1576 from tom-tan/safe-pure-nothrow-array-split
Mark std.array.split and splitter as @safe, pure and nothrow
2013-10-02 04:33:58 -07:00
Andrej Mitrovic
7494ef15c1 Implement workaround for regression - Fix Issue 11053. 2013-09-16 23:05:28 +02:00
Tomoya Tanjo
437d81f6de Mark std.array.split and splitter as @safe and pure 2013-09-15 17:24:16 +09:00
Tomoya Tanjo
a0640139ca Use documented unittest instead of the example in the comment 2013-09-15 14:40:19 +09:00
Tomoya Tanjo
1a7546cadb Mark the unittest for std.array.minimallyInitializedArray as @safe 2013-09-15 13:00:06 +09:00
monarch dodra
0b6ceaa5aa Merge pull request #1561 from tom-tan/fix-unittest-array-assocArray
Fix unittest for std.array.assocArray
2013-09-14 13:49:24 -07:00
monarch dodra
b0d11ada76 Merge pull request #1563 from tom-tan/fix-unittest-array-blockAttribute-nDimensions
Mark unittests for blockAttribute and nDimensions as @safe, pure, nothrow
2013-09-14 13:48:36 -07:00
monarch dodra
b3fa35ae73 Merge pull request #1566 from tom-tan/fix-array-rangeprimitives-for-array
Fix the range primitives for array in std.array
2013-09-14 13:48:18 -07:00
Tomoya Tanjo
ae9ffd7b48 Fix unittest for std.array.overlap 2013-09-14 12:42:20 +09:00
Tomoya Tanjo
1d711cae88 Fix the range primitives for array in std.array 2013-09-14 12:27:15 +09:00
Tomoya Tanjo
5939a04e8c Fix unittest for std.array.assocArray 2013-09-14 11:30:22 +09:00
Tomoya Tanjo
e0f27b6d53 Change unittest block to version(unittest) block 2013-09-14 11:24:16 +09:00
monarch dodra
67e2f0055b Merge pull request #1562 from tom-tan/fix-unittest-array-array
Fix a unittest for std.array.array
2013-09-11 08:35:55 -07:00
Tomoya Tanjo
d3319ae38d Use documented unittest for std.array.uninitializedArray 2013-09-11 21:42:29 +09:00