Commit graph

3362 commits

Author SHA1 Message Date
Adrian Matoga
09a5f5c472 Array!bool now assigns and reads correct values on 64-bit machines 2012-08-06 18:49:32 +01:00
David Nadlinger
395e360d74 Document non-short-circuiting behavior of allSatisfy/anySatisfy. 2012-08-06 14:34:51 +02:00
David Nadlinger
41cca054a5 std.typetuple docs: Use "template predicate". 2012-08-06 14:34:51 +02:00
Andrei Alexandrescu
d823b4eb13 Merge pull request #731 from monarchdodra/algoSave2
Fixes in std algorithm
2012-08-05 20:14:21 -07:00
Andrei Alexandrescu
2296401172 Merge pull request #724 from monarchdodra/RefCounted
Small fix for opAssign(T)
2012-08-05 19:30:23 -07:00
jmdavis
46c8498fc5 Added new overload for takeNone which can sometimes return the original type. 2012-08-05 19:25:33 -07:00
Andrei Alexandrescu
a3b34c7c41 Merge pull request #723 from dsimcha/partialShuffle
Add std.random.partialShuffle.
2012-08-05 19:23:56 -07:00
Andrei Alexandrescu
de23ee20d1 Merge pull request #722 from dsimcha/parallelismDocImprovements
Improvements to std.parallelism docs:  Add source link, improve formatti...
2012-08-05 19:21:35 -07:00
jmdavis
106bdd8cae Fixed type in std.conv. 2012-08-05 17:01:07 -07:00
Andrei Alexandrescu
d67d2eaa66 Merge pull request #712 from jmdavis/canFind
Added overload for canFind which works with multiple needles.
2012-08-05 15:58:41 -07:00
Andrei Alexandrescu
3d9c72bcfa Merge pull request #688 from jmdavis/filter
Added std.typetuple.Filter.
2012-08-05 15:42:15 -07:00
Andrei Alexandrescu
8cddf7d176 Merge pull request #682 from jmdavis/swap
Workaround for bug# 4789 removed.
2012-08-05 15:38:02 -07:00
k-hara
c6dc1711c4 fix template constraints 2012-08-06 01:05:06 +09:00
k-hara
5daf79cbe3 fix Issue 8508 - std.traits.isSomeString no longer works with enums 2012-08-06 01:04:24 +09:00
Jonathan M Davis
fc99e5583e Merge pull request #729 from andralex/bug8469
Added additional check to isSorted to detect invalid predicates
2012-08-04 18:47:06 -07:00
jmdavis
68de5f2f5a Added Filter and Lambda to std.typetuple. 2012-08-02 19:51:42 -07:00
monarchdodra
d0457fe82a This test is actually needed
Adds "isSomeString" to map's "length" test.
2012-07-31 13:47:27 +03:00
monarchdodra
58fef77d02 Fixes in std algorithm
*Tuning of map for "length", "opIndex", "opSlice"
*Fill is more efficient, accepts infinite inpute length
*adjacentFind: Correctly saves
*minCount: Using value types (and not reference types). Throws on empty range
*minPos: Correcttly saves
*equal: More efficient implementation
2012-07-31 12:46:19 +03:00
k-hara
119f7f7424 Revert all const qualifier of class member functions that inherited from Object.
This change is necessary to avoid breaking existing codes which inherit them in user code.
2012-07-31 10:05:59 +09:00
Andrei Alexandrescu
3f6def1694 Added additional check to isSorted to detect invalid predicates 2012-07-30 18:19:39 -04:00
k-hara
cedddcd23e fix Issue 5939 - Cannot copy std.algorithm.map
Move out Voldemort types to modle level.
2012-07-31 00:30:07 +09:00
jmdavis
9ca21ef2e7 Fix for issue# 8459.
isTrusted and isSafelyCallable have been removed. isSafe now checks for
both @safe and @trusted again (but correctly now).
2012-07-28 17:15:32 -07:00
Andrei Alexandrescu
494cbc5295 Merge pull request #725 from jmdavis/8450
Fix for regression bug# 8450.
2012-07-27 17:33:32 -07:00
jmdavis
e169f5dfae Fix for issue# 8362.
"std.traits.isSafe doesn't work with unsafe lamdba functions"
2012-07-27 13:06:58 -07:00
jmdavis
3bd83aad16 Fix for regression bug# 8450.
This requires the fix for bug# 8362 in order to compile and work.
2012-07-26 21:21:30 -07:00
monarchdodra
f0304974e8 Fix for opAssign(T)
This either:
*Asserts if autoInit==No and not initialized (instead of doing an access violation)
*EnsuresInitialized if autoInit==Yes

Uses "move(a, b)" instead of "b = move(a)" for slightly increased performance
2012-07-26 11:41:26 +03:00
dsimcha
ee3b2b06a3 Improvements to std.parallelism docs: Add source link, improve formatting of examples. 2012-07-25 21:39:03 -04:00
dsimcha
f2c17d9b0d Add std.random.partialShuffle. 2012-07-25 21:37:41 -04:00
jmdavis
c7b4948e40 Added overload for canFind which works with multiple needles. 2012-07-24 00:07:57 -07:00
jmdavis
d283d5735c Move August removals to September.
Several deprecated items were listed for removal in August, but it's
looking likely that 2.060 will come out in August, and I'd prefer not to
have them removed for 2.060 given how many items are already in the
changelog, and they're already deprecated, so it'll only affect people
compiling with -d either way. So, I'm changing the ddoc comments to say
September instead of August. They'll be removed in 2.061.
2012-07-23 23:11:07 -07:00
Ellery Newcomer
6e81ceb1b4 moveBack moves back, not front 2012-07-23 16:43:35 -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
9d91e1de2f Merge pull request #702 from 9rnsr/rev_const
Minimal reverting of Issue 1824 - Object not const correct
2012-07-22 21:47:09 -07: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
5313288dd1 Merge pull request #704 from ibuclaw/issue8191
Fix cstream.printf() on x86_64.
2012-07-22 21:07:15 -07:00
Andrei Alexandrescu
812077114c Merge pull request #686 from jmdavis/cycle
Make Cycle const-correct.
2012-07-22 20:12:41 -07:00
Andrei Alexandrescu
92335506d3 Merge pull request #654 from dawgfoto/fix8314
fix issue 8314
2012-07-22 19:50:22 -07:00
jmdavis
c290caf71f Quick fix to example in std.datetime. 2012-07-22 14:14:02 -07:00
jmdavis
ed22f41ec2 Fix for issue# 8398. 2012-07-22 00:40:25 -07:00
k-hara
9940579f73 Minimal reverting of Issue 1824 - Object not const correct 2012-07-22 15:21:51 +09:00
jmdavis
6c289a8969 Fix unnecessary template bloat in enforce.
The version of enforce which takes the file and line number as template
arguments has been scheduled for deprecation and has been replaced with
one which takes them as function arguments. The only code that this will
effect is code which explicitly passes the file or line number to
enforce.
2012-07-21 20:00:36 -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
Hara Kenji
17ba4bb594 Merge pull request #708 from jmdavis/6277
Changes required for issue# 6277.
2012-07-21 03:17:21 -07:00
jmdavis
735c2adbda Changes required for issue# 6277. 2012-07-21 01:57:28 -07:00
Hara Kenji
edcb304618 Merge pull request #706 from mylodon/container_slice_gaff
c[a, b] should be c[a .. b]
2012-07-20 21:51:58 -07:00
Ellery Newcomer
5d7148bf31 c[a, b] -> opIndex but we want call to go to opSlice 2012-07-20 16:26:03 -07:00
Martin Nowak
aa896e08cc set random generator in constructor
- Bug 8314 was already fixed by adding a _first flag
2012-07-20 16:34:49 +02:00
Iain Buclaw
acf76f2a4f Add unittest to TArrayStream to test printf does not SEGV 2012-07-19 18:27:44 +01:00
Iain Buclaw
7688e08b03 Fix cstream.printf() on x86_64. 2012-07-19 12:56:07 +01:00
Don Clugston
9881071c9d Fix example in BigInt docs
The example didn't compile.
2012-07-19 10:55:44 +02:00