Commit graph

5147 commits

Author SHA1 Message Date
Daniel Murphy
1818d190b5 More implicit array to bool 2013-12-15 19:55:34 +11: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
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
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
Martin Nowak
a30171a0cd add test 2013-12-05 15:16:32 +01:00
Iain Buclaw
1f9ccde895 Merge pull request #1746 from redstar/ieee
Make an unit test of std.math IEEE 754-2008 compliant.
2013-12-05 02:02:56 -08:00
monarch dodra
f011a9535f Merge pull request #891 from Kozzi11/master
Fix Issue 8877 - std.encoding.transcode is extremely slow
2013-12-05 00:30:04 -08:00
monarch dodra
43901ec57b Merge pull request #1736 from JakobOvrum/graphemerange
Add std.uni.byGrapheme and std.uni.byCodePoint
2013-12-05 00:24:48 -08:00
kai
072fec2cd6 Make an unit test of std.math IEEE 754-2008 compliant.
IEEE 754-2008 does not specify the sign bit of a NaN. The exceptions to this
rule are the operations copy, negate, abs and copySign. In all other cases,
the standard does not specify the sign bit (chapter 6.3 on page 35).

The unit test I like to change with this pull request assumes that the sign
bit of a NaN is propagated through the exp() computation. This assumption
violates IEEE 754-2008.

My fix is the use of abs() on the result, because this operation changes the
sign bit of a NaN in a compliant way.

There might be other places which must be fixed but this one really hurts me.
2013-12-05 09:14:59 +01:00
H. S. Teoh
8f132413dd Fix issue 11583.
The problem is that the assumption that the first word of a BigUint is
always non-zero is false when BigUint == biguintcore.ZERO, which is
defined to be [0]. So we need to check for that case in
BigUint.opCmp(ulong).

Also, crash-proof BigUint's invariant, since it would cause an
out-of-bounds array access if a bug causes data.length==0.
2013-12-04 22:28:23 -08:00
Dmitry Olshansky
cf7c701c08 other tweaks for std.regex/ctRegex 2013-12-04 23:51:12 +04:00
Dmitry Olshansky
378224db3a tweak algorithm to actually fast-track zero-pages
Also significantly speed up replicateBits for single bit pattern case.
2013-12-04 23:50:33 +04:00
Dmitry Olshansky
f5b012eab7 refactor TrieBuilder 2013-12-04 23:49:53 +04:00
Dmitry Olshansky
42eb21616f Make MultiArray CTFE-able, workaround CTFE bug. 2013-12-04 23:48:05 +04:00
monarch dodra
ea8ad59121 Merge pull request #1745 from 9rnsr/fix11671
Issue 11671 - ctRegex broken
2013-12-04 00:25:22 -08:00
monarch dodra
c98f5f5811 Merge pull request #1744 from 9rnsr/fix11603
Issue 11603 - std.algorithm.canFind does not work when needle is 1-byte zero
2013-12-04 00:07:47 -08:00
k-hara
29099f9894 fix Issue 11671 - ctRegex broken 2013-12-04 16:35:55 +09:00
k-hara
ab34fb92ad fix Issue 11603 - std.algorithm.canFind does not work when needle is 1-byte zero 2013-12-04 16:28:04 +09:00
monarch dodra
04c43ce00b Merge pull request #1731 from quickfur/issue11600
Fix issue 11600: to!BigInt(string) should validate input.
2013-12-03 17:13:28 -08:00
monarch dodra
ae34e224f8 Merge pull request #1578 from tom-tan/safe-pure-nothrow-this-format-FormatSpec
Mark a constructor of std.format.FormatSpec as @safe, pure, nothrow
2013-12-03 08:38:31 -08:00
Jakob Ovrum
31a4357955 Add std.uni.byGrapheme and std.uni.byCodePoint 2013-12-03 22:06:30 +09:00
monarch dodra
4a0effcd82 Merge pull request #1489 from tom-tan/safe-pure-string-lastIndexOf
Mark std.string.lastIndoxOf as @safe pure
2013-12-03 04:20:12 -08:00
monarch dodra
99a21a2128 Merge pull request #1742 from 9rnsr/fix10313
Remove workaround for issue 10313
2013-12-02 07:49:43 -08:00
k-hara
b774a41e59 Get rid of templates just for attribute inference 2013-12-02 22:56:43 +09:00