Jakob Ovrum
e86b56e8e7
Change std.algorithm.map example to not use I/O
2013-12-16 18:16:31 +09:00
Jakob Ovrum
d56d317220
Remove extraneous header from std.algorithm.reduce example
2013-12-16 17:48:28 +09:00
Jakob Ovrum
e569476df9
Fix std.algorithm.setIntersection documentation
2013-12-16 17:48:28 +09:00
Jakob Ovrum
09fc88f719
Fix std.algorithm.topN example
2013-12-16 17:48:27 +09:00
Jakob Ovrum
b8bdef9c42
Fix std.algorithm.partition3 example
2013-12-16 17:48:27 +09:00
Jakob Ovrum
67e56e4814
Fix std.algorithm.findAdjacent example
2013-12-16 17:48:27 +09:00
Jakob Ovrum
af52ebdfeb
Fix std.algorithm.find examples
2013-12-16 17:48:26 +09:00
Jakob Ovrum
6d1799c37b
Fix std.algorithm.splitter example
2013-12-16 17:48:26 +09:00
Jakob Ovrum
209819fae3
Change DDoc examples in std.algorithm to documented unittests
...
Examples with text succeeding them that is not associated with
another example are left as-is.
2013-12-16 17:48:17 +09:00
Martin Nowak
d5ddbb4901
Merge pull request #1724 from monarchdodra/tupleToString
...
Make Tuple.toString conditional
2013-12-15 15:31:32 -08:00
Martin Nowak
277ce347e9
Merge pull request #1773 from WebDrake/partial-shuffle
...
Fix Issue 11738 - partialShuffle should actually _be_ a partial shuffle :-)
2013-12-15 15:23:57 -08:00
Martin Nowak
39652cbd70
Merge pull request #1757 from jpf91/fixCurl
...
[urgent] Fix possible stack corruption in std.net.curl
2013-12-15 13:51:36 -08:00
monarch dodra
cd22d66b1c
Merge pull request #1735 from Xinok/master
...
Fix issue 7767 - worst case of quick sort
2013-12-15 09:01:50 -08:00
monarch dodra
6a8d98dd29
Merge pull request #1777 from yebblies/issue4733again
...
More implicit array to bool
2013-12-15 08:53:37 -08:00
Daniel Murphy
1818d190b5
More implicit array to bool
2013-12-15 19:55:34 +11:00
monarch dodra
afc6b1a5ee
Merge pull request #1774 from MartinNowak/std_zip2
...
fixup deprecation of externalAttributes
2013-12-15 00:52:35 -08:00
monarch dodra
42c151df49
Merge pull request #1771 from MartinNowak/std_zip
...
mark std.zip classes as final
2013-12-14 13:59:03 -08:00
Martin Nowak
5abd7d2d40
add @safe pure nothrow
2013-12-14 22:39:13 +01:00
Martin Nowak
f1261a21fb
fixup deprecation of externalAttributes
...
- directly access private member internally
- only deprecate the property
2013-12-14 19:59:56 +01:00
Joseph Rushton Wakeling
fbc8d1e08e
Fix Issue 11738 - partialShuffle should actually _be_ a partial shuffle :-)
...
This patch fixes the problem that partialShuffle was in fact invariably
shuffling the whole of the input, undetected because there were unittests
only for randomShuffle.
As well as the fix I've added some unittests specifically for partialShuffle
to ensure that it works properly, and I've taken the opportunity to tweak a
couple of bits of Ddoc and tidy up the randomShuffle unittests.
2013-12-14 12:12:33 +01:00
Martin Nowak
baf7334518
mark std.zip classes as final
2013-12-13 15:04:57 +01:00
monarch dodra
6e7b79bed3
Merge pull request #1758 from e10s/issue11681
...
Fix Issue 11681 - std.datetime.IntervalRange.opAssign with non-ref parameter is required
2013-12-13 03:37:37 -08:00
Martin Nowak
dc25d2d14a
fix fileAttributes for Posix
2013-12-13 02:08:31 +01:00
e10s
2df2d2ea9d
change some ddoc comments to /++ Ditto +/
2013-12-13 00:25:21 +09:00
e10s
155326ede5
make non-ref opAssigns call the ref overload
2013-12-13 00:21:06 +09:00
gittywithexcitement
672b98677a
update onReceive documentation
...
Return value description was incomplete.
2013-12-12 00:46:59 -08:00
monarch dodra
db35781cb6
Merge pull request #1763 from npadmana/typo_std_process_execute_doc
...
Fix completely trivial typo in std.process.execute documentation
2013-12-10 12:14:34 -08:00
monarch dodra
fb87a2455e
Merge pull request #1760 from francesco-cattoglio/issue_11713
...
added "dchar" for proper handling of UTF-8
2013-12-10 12:05:28 -08:00
monarch dodra
8deaf7f5a7
Merge pull request #1699 from blackwhale/tweak-uni
...
Tweak unicode Trie generation speed
2013-12-10 12:05:16 -08:00
Nikhil Padmanabhan
cbe9a79d08
Fix completely trivial typo in std.process.execute documentation
2013-12-10 14:58:35 -05:00
Don Clugston
a1c4cb33c2
Fix spelling mistake in doc comment
2013-12-10 10:17:29 +01:00
Francesco Cattoglio
3a6051588e
Added a UTF symbol to munch() unittest
2013-12-09 22:25:22 +01:00
Francesco Cattoglio
65bf4bf602
added "dchar" for proper handling of UTF-8
2013-12-09 20:50:28 +01:00
monarch dodra
2de19c7f7b
Merge pull request #1740 from WebDrake/numeric-op-complex
...
Fix Issue 11652: support numerical ^^ complex operations in std.complex
2013-12-09 09:28:18 -08:00
Joseph Rushton Wakeling
8e26e2d8ce
Complex.opBinaryRight for numeric types, to allow numeric ^^ complex operations.
...
The current design takes advantage of the fact that we know
we're dealing with a number whose argument is either 0 or PI.
An alternative design would be to just create a complex number
whose real part is equal to the input, and then raise it to
the power of this:
return typeof(return)(lhs, 0) ^^ this;
This would generate probably less precisely calculated values
but would be 100% consistent with complex ^^ complex calculations.
2013-12-09 16:18:11 +01:00
monarch dodra
624499f048
Merge pull request #1753 from dawgfoto/std_zip3
...
add deprecation message
2013-12-09 03:38:42 -08:00
monarch dodra
281a5b74ef
Merge pull request #1752 from dawgfoto/std_zip2
...
add a set time overload which takes a SysTime
2013-12-09 03:38:28 -08:00
monarch dodra
913434ede6
Merge pull request #1755 from lgvz/fix
...
Remove bug from staticIota in typecons
2013-12-09 03:19:17 -08:00
monarch dodra
aae7c341d2
Merge pull request #1751 from dawgfoto/std_zip
...
[install,regression] fix Issue 11692 - can't set file attributes for std.zip.ArchiveMember
2013-12-09 03:18:56 -08:00
e10s
099737501d
add opAssign with non-ref param to each IntervalRange
2013-12-09 01:09:13 +09:00
Johannes Pfau
6392e8af36
Fix possible stack corruption in std.net.curl
...
The HTTP and SMTP structs are used as value types. The delegate created
in onReceiveHeader stores a pointer to this HTTP as it needs to access
this.p so we potentially leak a reference to a stack variable here.
As the Impl struct is always allocated on the heap via RefCounted
storing a pointer to Impl is not an issue. So we move the delegate
generation out of HTTP and into impl to make sure it only stores a
pointer to Impl which will stay valid even if the original HTTP object
is moved.
Also reset some delegates in _basicHTTP and _basicFTP to avoid leaving
references to stack variables around.
2013-12-07 20:30:00 +01:00
=
084bd3a34a
Minor refactor
2013-12-07 13:21:50 -06:00
k-hara
64e0573940
fix property enforcement
2013-12-07 22:26:10 +09:00
Tero Hänninen
a63dc3e356
Remove bug from staticIota in typecons
...
step is not used -> if passed anything other than 1 as step, staticIota
will behave incorrectly.
2013-12-06 17:13:24 +02:00
Martin Nowak
30433e4e27
add deprecation message
2013-12-06 01:11:50 +01:00
Martin Nowak
136cf72de1
add a set time overload which takes a SysTime
...
- This makes setting the time compatible
with DirEntry time types.
2013-12-06 01:04:38 +01:00
Martin Nowak
463e5d803b
fix Issue 11692 - can't set file attributes for std.zip.ArchiveMember
...
- Document fileAttributes and set the internal _madeVersion
according to the encode attribute type.
- deprecate direct access to the externalAttributes field
2013-12-06 00:56:37 +01:00
Martin Nowak
a700a2a572
remove trailing whitespace
2013-12-05 23:52:07 +01:00
Martin Nowak
ab5cdb26f8
reorganize members
...
- avoid padding holes (class size 144 byte -> 132 byte)
- move less important attribute members to the bottom
2013-12-05 23:51:45 +01:00
Martin Nowak
c1251436ba
fix Issue 11691 - can't join pathSplitter with pathSeparator
...
- The inferred return type of front had an additional
layer of const because it's a const method.
2013-12-05 15:22:01 +01:00