Alex Rønne Petersen
1c22141596
Merge pull request #967 from 9rnsr/enforceProperty
...
For the more property enforcement
2012-11-22 22:29:20 -08:00
k-hara
01df2f60be
Remove redundant parenthesis for getters, and use assignment syntax for setters
2012-11-23 15:07:17 +09:00
k-hara
2897ca8807
fix Issue 9062 - AddrExp should distinguish the existence of property resolution
2012-11-23 14:25:24 +09:00
Andrei Alexandrescu
5de964dea9
Merge pull request #941 from denis-sh/refactor-std.range.put
...
Refactor `std.range.put`
2012-11-18 20:56:53 -08:00
jmdavis
90e9bfee9d
Quick fix to some ddoc comments so that they compile.
2012-11-16 22:24:06 -08:00
unknown
5f33a589e7
Insert dropBack, more examples of drop
...
Also fixes popBackN to only work on bidir.
Adds a logical path for popFrontN with infinite sliceable ranges.
2012-11-15 19:30:01 +01:00
Alex Rønne Petersen
5ed20fced6
Merge pull request #940 from denis-sh/reformat-std.range-book-table
...
Reformat `std.range` book table
2012-11-14 11:18:56 -08:00
Alex Rønne Petersen
c9c65fed95
Merge pull request #944 from denis-sh/fix-std.range-documentation
...
Fix `std.range` documentation
2012-11-14 11:17:26 -08:00
Denis Shelomovskij
6a0b6c4dee
Fix std.range.takeExactly
trait to reject slices without length.
2012-11-14 23:11:00 +04:00
Denis Shelomovskij
16d4fa385f
Fix std.range.Chunks
trait to reject not input ranges.
2012-11-14 23:11:00 +04:00
Denis Shelomovskij
0d5daf7f7f
Add note for all std.range
public members intentionally accepting non-ranges.
...
* intentionally means "not because of bugs"
2012-11-14 23:11:00 +04:00
Denis Shelomovskij
9cf17a4c47
Fix std.range.{hasAssignableElements,hasAssignableElements}
documentation.
2012-11-14 23:10:45 +04:00
Denis Shelomovskij
f2393e58d9
Fix std.range.ElementType
documentation.
2012-11-14 23:10:45 +04:00
Alex Rønne Petersen
236fd71b13
Merge pull request #942 from denis-sh/fix-std.range-templates-for-inout
...
Fix `std.range` templates for `inout`
2012-11-14 07:25:34 -08:00
Denis Shelomovskij
3b84e18bc8
Reformat std.range.put
book table
...
Empty lines aren't allowed in `BOOKTABLE` macro as it results in inserting a "break" into a table.
2012-11-14 18:35:42 +04:00
Denis Shelomovskij
4abe76af39
Stay before 80 characters in reformatted std.range
book table
...
Reformatted by @monarchdodra.
2012-11-14 18:35:01 +04:00
Denis Shelomovskij
51d48abb01
Add inout
support to std.range.{hasMobileElements,lengthType}
2012-11-14 17:44:18 +04:00
Denis Shelomovskij
db1d909d7a
Remove redundant dummy arguments for inout
support names.
2012-11-14 15:28:50 +04:00
Denis Shelomovskij
222a938adf
Fix std.range.isRandomAccessRange
: is(typeof(r[1]) == typeof(r.front))
is also required.
2012-11-14 15:17:05 +04:00
Denis Shelomovskij
f767461a2d
Refactor std.range.put
: flatter static if
s.
2012-11-14 15:05:44 +04:00
Denis Shelomovskij
d6d438b024
Refactor std.range.put
: use simpler (E[]).init
instead of (&e)[0..1]
hack in static if
s.
2012-11-14 14:36:30 +04:00
Denis Shelomovskij
6c3422a8aa
Remove redundant checks from std.range.put
static if
s
2012-11-14 14:29:26 +04:00
Denis Shelomovskij
a5ac871490
Reformat std.range
book table
...
Empty lines aren't allowed in `BOOKTABLE` macro as it results in inserting a "break" into a table.
2012-11-14 13:03:24 +04:00
Alex Rønne Petersen
a4856a70cc
Merge pull request #880 from monarchdodra/walkLength
...
Update walkLength impl; better support for inf.
2012-10-19 02:29:19 -07:00
monarch dodra
eb7b01eaba
Update std/range.d
2012-10-19 09:27:02 +03:00
monarch dodra
6efa0268f4
Update walkLength doc and impl; support for inf.
2012-10-19 07:33:19 +02:00
jmdavis
3d92608c47
Added more deprecation messages.
2012-10-15 21:40:36 -07:00
monarch dodra
df798d4356
save consolidation
2012-10-14 12:19:10 +02:00
Brad Roberts
c07bce765c
Merge pull request #821 from AndrejMitrovic/patch-2
...
Fix Issue 8676
2012-10-04 10:43:38 -07:00
Andrei Alexandrescu
04acd3f07e
Merge pull request #829 from monarchdodra/popN
...
Tweak in /pop(Front|Back)N/
2012-10-03 21:23:42 -07:00
monarch dodra
2c7747ce56
Tweak in /pop(Front|Back)/
2012-10-03 08:18:31 +02:00
monarch dodra
1ed21ed00b
Tighter type checking for SortedRange
2012-10-02 19:51:33 +03:00
Andrej Mitrovic
619e6e7a16
Fix Issue 8676 (2)
...
lockstep's stopping policy default value isn't documented because it's set inside the function definition. Once Issue 8687 (http://d.puremagic.com/issues/show_bug.cgi?id=8687 ) is fixed we'll be able to set the default value in the function header.
2012-09-29 18:46:01 +03:00
monarch dodra
67a1bd7016
Tweaks in Take
...
Avoids useless runtime checks for when dealing with infinite ranges.
2012-09-26 20:52:10 +02:00
Andrei Alexandrescu
1b645ba717
Merge pull request #748 from RommelVR/master
...
Added std.range.Sequence slicing (Issue 7896)
2012-09-16 19:17:27 -07:00
Daniel Cousens
74929477ab
Changed static slicing to relative slicing.
2012-09-05 19:47:04 +10:00
Nick Treleaven
d0643925cd
Add input range-related links, fix a/an typo
2012-08-30 14:23:34 +01:00
Nick Treleaven
966fb99d4f
Fix InputRange example
...
useRange must take an InputRange!int, not just InputRange.
Remove UsesRanges class - it's clearer just to use a free function.
2012-08-30 14:04:01 +01:00
monarchdodra
0dced45e5f
Documenting return of pop[Front|back]N
2012-08-25 18:13:55 +02:00
Daniel Cousens
cf18f2823d
Added unittest to show relative slicing behaviour more clearly.
2012-08-20 22:38:36 +10:00
Daniel Cousens
696256c76b
Shortened unittest to use drop() instead of sequential popFront
2012-08-20 22:28:38 +10:00
Daniel Cousens
c9ad0e9819
Changed take() to takeExactly()
...
As Sequence is an infinite range, it's guaranteed that there will be more than the number of elements requested, so takeExactly will work just fine, and it has the advantage of having length.
2012-08-15 22:11:32 +10:00
Daniel Cousens
f30dc0d44a
Switched from ulong to size_t (failing tests)
2012-08-13 21:45:20 +10:00
Daniel Cousens
475d6e12eb
Removed const from Sequence.opSlice()
...
Also fixed stylistic issues.
2012-08-13 20:51:18 +10:00
Daniel Cousens
d9e1a501ec
Added std.range.Sequence slicing (Issue 7896)
...
See http://d.puremagic.com/issues/show_bug.cgi?id=7896 for more information.
2012-08-12 22:42:28 +10:00
jmdavis
46c8498fc5
Added new overload for takeNone which can sometimes return the original type.
2012-08-05 19:25:33 -07:00
k-hara
4c4c35c922
Revert "Merge pull request #707 from eco/real-lambdas"
...
Because of the auto-tester breaking.
This reverts commit d5319fcfb6
, reversing
changes made to 5313288dd1
.
2012-07-23 14:25:38 +09:00
Andrei Alexandrescu
d5319fcfb6
Merge pull request #707 from eco/real-lambdas
...
Switch std.algorithm/.range to lambda syntax
2012-07-22 21:10:12 -07:00
Andrei Alexandrescu
812077114c
Merge pull request #686 from jmdavis/cycle
...
Make Cycle const-correct.
2012-07-22 20:12:41 -07:00
Brad Anderson
32eb03a983
Switch std.algorithm/.range to lambda syntax
...
String lambdas are, of course, still supported.
2012-07-21 13:50:26 -06:00