Commit graph

347 commits

Author SHA1 Message Date
Martin Nowak
c445f1c288 Merge pull request #1766 from jmdavis/deprecations
Move various deprecations along.

Conflicts:
    std/algorithm.d
    std/zip.d
2013-12-19 23:33:47 +01:00
monarch dodra
50ad576f63 Merge pull request #1743 from JakobOvrum/only
Add support for multiple values to std.range.only
2013-12-19 05:02:29 -08:00
Jakob Ovrum
c08bc94471 Add support for any number of values to std.range.only 2013-12-19 10:38:26 +09:00
jmdavis
efd6ea0cbf Move various deprecations along. 2013-12-11 23:44:12 -08:00
Don Clugston
a1c4cb33c2 Fix spelling mistake in doc comment 2013-12-10 10:17:29 +01:00
Jakob Ovrum
02129cb68f Move std.range.only example to documented unit test 2013-12-04 00:21:18 +09:00
monarchdodra
f95a918506 Remove useless Tuple from chain 2013-11-26 08:31:04 +01:00
monarchdodra
d78433f76e Fix typos 2013-11-22 21:41:54 +01:00
monarchdodra
87c71e6e14 Further improve put 2013-11-22 21:41:54 +01:00
monarchdodra
156962217c Issue 10571 - formattedWrite error with delegate and string 2013-11-22 21:41:54 +01:00
monarchdodra
c717b503e7 put rewrite
Better compatibility with cross string output
2013-11-22 21:41:54 +01:00
k-hara
a9eb6219b4 fix Issue 11401 - ElementType returns constructor instead of type
1. For `exp.member`, compiler always try to resolve property/optional parenthesis on `exp`. so use `front.init`.
2. Built-in `init` property always returns rvalue, so `front.init` won't invoke postblit.
2013-11-04 16:43:44 +09:00
Andrej Mitrovic
e8883a8542 Fixes Issue 11339 - Add examples for ElementEncodingType and ElementType. 2013-10-24 16:39:44 +02:00
monarch dodra
43a77fa50c support for empty static arrays in ElementEncodingType 2013-10-24 12:37:41 +02:00
monarchdodra
a4b9321901 Fix Issue 11336 - ElementType does not support types with disabled postblits 2013-10-24 09:44:41 +02:00
Denis Shelomovskij
6788a62506 Fix Issue 11196 - std.range.zip fails to compile if range elements aren't default contructable
Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=11196
2013-10-08 17:08:27 +04:00
Andrej Mitrovic
6924d3e6db Merge pull request #1483 from monarchdodra/chunksAmbiguity
Solve conflicting "chunks" declaration
2013-10-01 18:13:48 -07:00
H. S. Teoh
5b3b4b1cdc Add RefRange to ddoc overview. 2013-08-25 14:05:56 -07:00
monarchdodra
26cc34840f Solve conflicting "chunks" declaration 2013-08-16 20:23:40 +02:00
k-hara
30356d606f Fix @property annotations and incorrect parenthesis 2013-07-16 00:31:26 +09:00
Hara Kenji
50c7b20959 Merge pull request #1398 from monarchdodra/mapSlice
Better slicing for map
2013-07-15 05:24:06 -07:00
jmdavis
32c3998ebd Fix for issue# 10474. 2013-07-08 13:36:50 -07:00
monarchdodra
0ac90b1770 make cycle opDollar manifest constant 2013-07-08 20:03:29 +02:00
Andrej Mitrovic
4da1639c98 Merge pull request #1337 from 9rnsr/fix_attrs
Potentially @safe & pure formatting
2013-06-27 18:53:22 -07:00
Andrej Mitrovic
4727fdde0b Fixes Issue 10468 - Remove ref from parameter type in lockstep, which caused a regression. 2013-06-25 00:19:05 +02:00
k-hara
d8d4c1ea41 [formatValue] (pointer)
+ Infer attributes in retro range primitives
2013-06-20 10:57:48 +09:00
irritate
5521cca32a Just call Unqual once after CommonType. 2013-06-18 21:30:45 -04:00
irritate
ebe93db8c1 Issue 10130 - Fix compile error when calling map on iota with const step.
Also fixed the similar issue for iota with const begin/end/step floats.
2013-06-18 20:53:12 -04:00
Brad Anderson
746afc47b8 Fix link to put primitive in std.range docs 2013-05-28 20:39:57 -06:00
David Nadlinger
dc4fe37080 Merge pull request #992 from monarchdodra/chunks
Update in chunks
2013-05-27 04:16:23 -07:00
monarch dodra
3e8a8cd887 fix typo in comment 2013-05-27 13:10:43 +02:00
jmdavis
ce1b2294b0 Undocument some deprecated functions.
They were marked for removal in the docs (many of them were intended to
be removed in January), so now they've been removed from the docs and
marked for removal from the code in November.
2013-05-05 16:34:25 -07:00
Vladimir Panteleev
16286c045b DDoc tweaks and fixes 2013-04-18 23:49:06 +00:00
monarch dodra
6f21319029 Update in chunks
reduces requirements to ForwardRange
2013-03-27 08:08:55 +01:00
unknown
dd1a80c56f Fixup for cycle RangeError invocation
From: #1183 :
Issue 9612: Cycle opSlice should throw when finish > start

Because a RangeError is not actually customizable, and the first argument is actually the file name. The error was producing:
```
core.exception.RangeError@2 > 1(3836): Range violation
```

Now it produces:
```
core.exception.RangeError@std\range.d(3835): Range violation
```
2013-03-10 22:16:12 +01:00
Brad Anderson
b7d075d555 Cycle opSlice should throw when finish > start
Issue 9612
2013-02-27 18:37:23 -07:00
jmdavis
2735d30f4e Remove all uses of std.metastrings.Format. 2013-02-24 18:42:46 -08:00
Andrej Mitrovic
c0713f1b79 Refactor lockstep and simplify opApply string mixin generator. 2013-02-08 22:57:39 +01:00
Andrei Alexandrescu
e57c8c7393 Merge pull request #1008 from monarchdodra/save
Consolidating forward range requirements
2013-02-04 21:03:08 -08:00
monarch dodra
54b151ffdb Consolidating forward range requirements
Because returning anything other than an *exact* type match messes everything up. This is particularly true in the sense that "saved" ranges are usually passed directly to a function, so not cast back to the original.
2013-02-04 18:55:14 +01:00
jmdavis
70dbc120bd Uncommented stuff that was commented out due to bug 9947.
Kenji missed a couple of lines of commented out code in hasSlicing, so
this commit uncomments them now that bug 9947 has been fixed.
2013-02-03 17:10:21 -08:00
Andrei Alexandrescu
a765c38c79 Merge pull request #1109 from 9rnsr/fix8847
Enable hasSlicing test which had been blocked by bug 9947
2013-02-03 16:57:16 -08:00
k-hara
6109cb6192 Enable hasSlicing test which had been blocked by bug 9947 2013-02-04 09:34:48 +09:00
Andrej Mitrovic
3625bcb7e8 Fixes Issue 8920 - iota should work with types smaller than int. 2013-02-04 01:14:13 +01:00
Daniel Murphy
41a9f1fa05 Fix Issue 6408 - Phobos fixes
Do not use typeof(Type[0]) to get the element type of an array, use typeof(Type.init[0])
2013-01-18 19:10:16 +11:00
jmdavis
9bab8393c3 Made cycle's DollarToken private.
There's no reason for anyone to use it directly, so it's better for it
to be private.
2013-01-12 22:51:35 -08:00
Alex Rønne Petersen
c1c7adec0c Merge pull request #1065 from monarchdodra/repeatSlice
Provide slicing for Repeat
2013-01-12 08:50:29 -08:00
Alex Rønne Petersen
fa6131bb29 Merge pull request #1069 from monarchdodra/zipLockstep
Const fixes in Zip and Lockstep
2013-01-11 02:46:52 -08:00
jmdavis
1ec00a35d8 Add opSlice to Cycle. 2013-01-11 00:05:16 -08:00
unknown
24164c5e9b Various fixes in lockstep and zip
Mainly, they accepted the types R, provided Unqual!R is a range. But that doesn't make sense.

Reduced to only accepting if R itself is a range.

Improved constraints, fixed implementations, removed needles bug workaround.
2013-01-11 08:31:09 +01:00