Commit graph

436 commits

Author SHA1 Message Date
k-hara
5b39ab253c Make side effect on strongly pure function call 2014-06-14 23:17:44 +09:00
Denis Shelomovskij
14d914074a Fix property enforcements in std.range mixins. 2014-06-13 14:12:55 +04:00
Dmitry Olshansky
c496463339 Merge pull request #2203 from monarchdodra/isSomeString
Constrain isSomeString
2014-05-31 04:10:42 -07:00
Walter Bright
eceb175e03 add NullSink output range 2014-05-27 10:35:41 -07:00
monarchdodra
e2e3a70a62 Constrain isSomeString 2014-05-25 17:43:42 +02:00
Walter Bright
1778e9fa40 Merge pull request #2156 from monarchdodra/stringMixin
Remove gratuitous string mixins
2014-05-12 02:26:42 -07:00
monarchdodra
faf7491d3c Fix Issue 12731 - Infinite range slices are not themselves sliceable 2014-05-11 14:30:57 +02:00
monarchdodra
510c1c5a0e Remove useless variable 2014-05-10 21:59:53 +02:00
monarchdodra
c7dfd80e61 Use template mixin over string mixin 2014-05-10 21:59:53 +02:00
monarchdodra
61ada695e3 Remove gratuitous string mixins 2014-05-10 21:21:13 +02:00
qchikara
6daa57a261 WorkAround 12661: To make SortedRange#this() nothrow
Debug statements prevent this function from nothrow.
So I take them out of the function body and put them into the
postcontract which has another context.
2014-05-06 21:52:56 +09:00
Andrej Mitrovic
3f4fde2002 Merge pull request #2139 from monarchdodra/sortedrange
Fix Issue 9616 - SortedRange should support all range kinds
2014-05-01 20:03:20 +02:00
monarchdodra
604f327971 Fix failing win unittests 2014-05-01 11:39:38 +02:00
Andrej Mitrovic
915b2d77e6 Merge pull request #2095 from monarchdodra/imports
Scope and conditionally import `std.typecons : Tuple`
2014-04-25 23:21:04 +02:00
monarchdodra
8d2b33c594 Scope std.typecons : Tuple imports 2014-04-21 23:25:05 +02:00
Andrej Mitrovic
f205f7d7c5 Replace implicit catches of Throwables with explicit catches. 2014-04-21 23:05:50 +02:00
Andrei Alexandrescu
b9ff961d1d Added the text of the failing unittest 2014-03-23 00:49:41 -07:00
Andrei Alexandrescu
f364c390e8 rebased, fixed conflict 2014-03-23 00:49:41 -07:00
Andrei Alexandrescu
bb2ab1bebd review 2014-03-23 00:49:41 -07:00
Andrei Alexandrescu
67b5ffc2ff Improved error messages 2014-03-23 00:49:41 -07:00
Andrei Alexandrescu
6095350e2a Fix Issue 9616 - SortedRange should support all range kinds 2014-03-23 00:49:41 -07:00
Andrei Alexandrescu
6df2098064 Improved error messages 2014-03-23 00:49:41 -07:00
Andrei Alexandrescu
8366c67d9e Fix Issue 9616 - SortedRange should support all range kinds 2014-03-23 00:49:41 -07:00
Infiltrator
3fe27f4cd1 Update range.d 2014-03-20 12:41:21 +11:00
Infiltrator
ee2d46263b Issue 5870 - Debug code in SortedRange assumes it can always print the range 2014-03-20 11:32:51 +11:00
Per Nordlöw
d701f90275 Issue 3882: Use cast(void) instead of value capture 2014-03-18 23:50:18 +01:00
monarch dodra
44371f8c8c Tweak Zip implementation 2014-03-18 20:32:57 +01:00
Andrej Mitrovic
9e9c2f6cef Merge pull request #1972 from monarchdodra/12007-3
Fixup Repeat condition
2014-03-13 20:48:29 +01:00
monarchdodra
468d57e328 Add missing imports 2014-03-12 07:40:44 +01: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
monarchdodra
7e52bfdb9b Fixup Repeat condition 2014-02-27 18:42:42 +01:00
Dmitry Olshansky
98d4c60840 Merge pull request #1895 from monarchdodra/12007
Fix issue 12007 - cartesianProduct does'nt work with ranges of immutable...
2014-02-27 00:31:30 +03:00
monarchdodra
189d64433f Simplify Zip's constructor 2014-02-26 21:18:59 +01:00
monarchdodra
301b42f0de Fix issue 12007 - cartesianProduct does'nt work with ranges of immutables
https://d.puremagic.com/issues/show_bug.cgi?id=12007

This makes a tweak to `Zip`'s `save`: Now, it *builds* a new `Zip` object
from the saved ranges, rather than assigning each range individually.

This gives 2 advantages:
1. Better support for `save` (which doesn't actaully guarantee assignability)
2. Avoids useless `opAssign` overhead
2014-02-26 21:18:59 +01:00
monarch dodra
b770bddcaf Merge pull request #1950 from AndrejMitrovic/Fixup1835
Issue 12177 (regression) -  inout(Cycle!(string[2])) implicit cast problem
2014-02-18 07:59:33 +01:00
Daniel Murphy
4d0892baba Remove uses of the comma operator 2014-02-18 00:48:40 +11:00
Andrej Mitrovic
025c133e34 Introduce a cast as a workaround for missing inout constructors. 2014-02-17 11:10:14 +01:00
Andrej Mitrovic
8892490584 Use 4 spaces, not 3 for indentation. 2014-02-17 11:06:57 +01:00
monarchdodra
1cc6c6a142 Fix issue 12007 - cartesianProduct does'nt work with ranges of immutables
The fix consists in making Repeat!T assignable, even if T itself is not.
2014-02-12 09:57:13 +01:00
k-hara
6f43a92cd2 Fix predicate template implementations in std.traits and std.range
Use T.init property instead of void initializer, because it will work even if T is const or immutable type.

I must change a part of unit test for the bug 6935, because we cannot support ranges which overrides init property.
2014-02-11 18:36:37 +09:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
Marc Schütz
e4ce099124 Change documentation to use the correct parameter name. 2014-02-08 12:07:07 +01:00
Robert burner Schadek
3890dc69c8 std.range doc changes: less example redundance and examples for function
without
2014-02-04 15:07:11 +01:00
monarchdodra
266357743a Tweak zip implementation
Made doc location consistent in regards to static ifs.
2014-02-01 16:51:05 +01:00
Hara Kenji
8e302d0114 Merge pull request #1851 from monarchdodra/cycleMod
Fixes in Cycle
2014-01-25 14:15:35 -08:00
Daniel Murphy
a656f26e9e Remove use of automatic adjacent string literal concatenation from phobos 2014-01-20 03:42:21 +11:00
monarchdodra
63535371bc Cycle unittests 2014-01-13 20:50:31 +01:00
monarchdodra
25f123687c Fix issue 10845 2014-01-13 20:50:31 +01:00
monarchdodra
dde77ece73 Tweak Cycle indexing 2014-01-13 20:50:31 +01:00
David Nadlinger
4c0c73220d Fix Cycle!(T[N]).opSlice return type qualifier.
This is a fixup for commit 3faffc3c59.
2014-01-13 13:40:40 +01:00