jmdavis
a885cf85ff
Added RefRange to std.range.
...
It's a wrapper which effectively allows you to pass a range by
reference.
2012-06-20 20:44:02 -07:00
jmdavis
55666e778c
Added additional unit tests for 7937.
2012-06-04 23:20:15 -07:00
jmdavis
105e3600ce
Additional tweaks for 7937.
...
I didn't notice that iota had overloads. They've now been taken care of
as well.
2012-06-04 03:23:50 -07:00
jmdavis
5ca9dd0fd9
Fix for issue# 7937.
2012-06-04 02:10:40 -07:00
David Simcha
1c33f47992
Merge pull request #539 from 9rnsr/fix7824
...
Issue 7824 - isInputRange fails to recognize inout(T)[]
2012-05-27 19:54:14 -07:00
David Simcha
613d10f1b2
Merge pull request #566 from eco/unsigned-reverse-iota
...
fix Issue 7982 - unsigned reverse iota broken
2012-05-27 19:48:04 -07:00
k-hara
900fa89e42
More fixes for inout qualifier.
2012-05-28 10:45:33 +09:00
k-hara
ed00f6c28c
fix Issue 7824 - isInputRange fails to recognize inout(T)[]
2012-05-28 09:54:07 +09:00
Hara Kenji
0d81fe8f27
Merge pull request #591 from deadalnix/fix_stride_slicing
...
Fix empty range creation when using stride.
2012-05-25 05:32:14 -07:00
deadalnix
f05173a9bd
Added assertion.
...
Workaround for failing tests.
2012-05-23 22:28:25 +02:00
deadalnix
cb261343cb
Fix empty range creation when using stride.
2012-05-19 16:54:26 +02:00
jmdavis
53cf501d8c
Fixed note on bidirectional ranges.
...
It said that they were input ranges (plus the extra functions for a
bidirectional range), but isBidirectionalRange requires a forward range.
2012-05-18 19:33:00 -07:00
Jonathan M Davis
5bbfed888b
Merge pull request #523 from denis-sh/improve-isInfinite
...
Change C++ style CT test to D style, make unittests CT
2012-05-06 01:10:11 -07:00
Brad Anderson
ebcba68f7b
fix Issue 7982 - unsigned reverse iota broken
...
iota.length needs to take into account unsigned values when the end is greater
than the start.
2012-05-04 00:25:25 -06:00
Jonathan M Davis
cd0ce7df2b
Merge pull request #521 from blackwhale/fix-doc
...
fix isTwoWay compatible description and implementation
2012-04-29 00:34:50 -07:00
David Simcha
9233d3d20d
Merge pull request #545 from eco/iota-pop-empty
...
fix Issue 7944 - std.range.iota.popFront() cycles when the range is empty
2012-04-22 18:02:17 -07:00
David Simcha
b1252f35af
Merge pull request #547 from eco/iota-unsigned-odd
...
fix Issue 6222 - A problem with iota() using size_t
2012-04-22 17:52:56 -07:00
Brad Anderson
23bfcd766f
Add index < length assert to iota.opIndex
2012-04-20 21:12:09 -06:00
Brad Anderson
6b92abb044
fix Issue 6222 - A problem with iota() using size_t
...
If the common type of begin and end is unsigned and end is 0 the private
member pastEnd ends up being unsigned.max due to "pastEnd - 1" (used to make
end not inclusive) which results in iota behaving incorrectly. A simple change
to always make an empty range when begin==end prevents this.
Also fixed and clarified the documentation.
2012-04-20 20:34:10 -06:00
Brad Anderson
028699fe6c
fix Issue 7944 - std.range.iota.popFront() cycles when the range is empty
...
Added !empty assertions to front, popFront, back, and popBack to the integer
iota like some other ranges do. Also added the one that was missing to the
floating point iota.
2012-04-20 00:26:51 -06:00
Denis Shelomovskij
20420759cb
Capitalize pointerTarget
's first letter
2012-04-07 16:40:23 +04:00
Denis Shelomovskij
92ea4946b8
Change C++ style CT test to D style, make unittests CT
2012-04-07 13:42:28 +04:00
Dmitry Olshansky
4fd562bbc6
fix isTwoWay compatible predicate
2012-04-05 19:43:17 +04:00
Andrei Alexandrescu
6a41af9bef
Merge pull request #508 from quickfur/stdrange_docs
...
Improve std.range's documentation.
2012-03-30 06:28:06 -07:00
H. S. Teoh
9969d60a88
Fix issues raised in pull request.
2012-03-29 20:30:56 -07:00
H. S. Teoh
62d9a71592
Indicate that std.algorithm.sort also returns SortedRange.
2012-03-28 07:43:39 -07:00
H. S. Teoh
dfd99cd91c
Grammar correction.
2012-03-28 07:43:39 -07:00
H. S. Teoh
a16a5ac7ef
A first stab at improving std.range's documentation.
2012-03-28 07:43:39 -07:00
Dmitry Olshansky
16bd8e423a
document isTwoWayCompatible
...
makes error messages understandable
2012-03-23 12:17:39 +04:00
Dmitry Olshansky
88ecf28752
fix Issue 7718 - regex and ctRegex produce different results
...
also fix unittest in std.range
2012-03-23 12:17:36 +04:00
Dmitry Olshansky
34683e4afb
apply code review suggestions, extending SortedRange
2012-03-23 12:17:31 +04:00
k-hara
348f68a159
Add @property more
2012-03-19 21:28:18 +09:00
dsimcha
7b62989568
Get rid of Bug 2443 workaround in InputRangeObject.
2012-03-08 22:51:06 -08:00
Andrei Alexandrescu
91c4363398
Merge pull request #365 from dsimcha/opDollar
...
Add opDollar aliases for std.range and std.algorithm.
2012-02-20 19:45:38 -08:00
k-hara
90497eeede
Issue 7476 - Write(ln) functions no longer accept retro range
2012-02-10 21:57:58 +09:00
k-hara
af9ea3465c
Move implementation templates into template local scope
2012-01-29 20:37:48 +09:00
dsimcha
86398b46fa
Fix a bug in std.range.hasLvalueElements due to ambiguity between addresses of functions and addresses of return values.
...
Remove workaround for Bug 2443 in lockstep.
2012-01-09 20:55:26 -05:00
Walter Bright
380ae65511
remove empty statements
2011-12-29 00:05:45 -08:00
dsimcha
052941a087
Add opDollar aliases for std.range and std.algorithm.
2011-12-11 12:38:45 -05:00
David Simcha
ae16fd1b51
Update std/range.d
2011-12-05 14:25:29 -05:00
dsimcha
36fc2fb922
Fix trivial regression in lockstep caused by DMD enforcing const more strictly.
2011-12-05 10:01:43 -05:00
David Nadlinger
130b1ac71c
Whitespace cleanup.
2011-12-04 09:56:14 +01:00
David Nadlinger
e312f9898b
Strict @property syntax compliance.
...
This enables the test suite to build with the -property switch enabled.
std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
Denis Shelomovskij
e8712ed9e1
Documentation and struct staticness in std.algorithm fixes
2011-11-14 17:10:19 +03:00
k-hara
5e83c0020d
Issue 6935 - struct with @disable this cannot make range
2011-11-13 17:04:19 +09:00
Hara Kenji
e2ba3bd55a
Merge pull request #268 from denis-sh/patch-6
...
integer `iota` is incorrect for negative `step`
2011-10-13 16:49:22 -07:00
k-hara
8d97eb3b21
Add std.random import for debug.
2011-09-29 07:29:19 +09:00
k-hara
78a2d8abdc
Reduce module dependencies.
2011-09-29 07:09:16 +09:00
Denis
0f345ea6c2
http://www.d-p-l.org/expression.html
...
"the remainder has the same sign as the dividend"
Thanks, braddr.
2011-09-27 11:32:46 +03:00
Denis
f1b62aefbd
Let's just avoid %
on negative numbers.
2011-09-24 17:30:09 +03:00