Commit graph

11578 commits

Author SHA1 Message Date
Andrei Alexandrescu
3f9a33f91d Merge pull request #3864 from Infiltrator/patch-1
Fix issue 12987 - topN should return the top portion of the range
2015-12-08 09:04:06 -05:00
sigod
e478958882 std.concurrency: MessageBox.get: yield if period is zero or negative 2015-12-08 15:42:46 +03:00
Infiltrator
865afe1b39 Update topN functions to return their top ranges 2015-12-08 19:21:46 +11:00
Daniel Murphy
8da9dbc2ae Merge pull request #3861 from tsbockman/size_of_china
Fix Issue 15419 - "@@@BUG@@@ the size of China"
2015-12-08 15:26:54 +11:00
tsbockman
1b19dd67e3 Improve std.conv.parse() docs. Point out that std.conv.to() works with string literals. 2015-12-07 19:08:11 -08:00
tsbockman
1f8bb8c811 Clean up invalid "@@@BUG@@@" comments from std.conv.parse unittest. 2015-12-07 18:49:03 -08:00
Brian Schott
2e28c979a5 Merge pull request #3860 from JakobOvrum/container_docs
Some std.container documentation fixes and improvements
2015-12-07 13:53:00 -08:00
Jakob Øvrum
a2117fafd5 Some std.container documentation fixes and improvements 2015-12-08 04:20:12 +09:00
Brian Schott
e60c9dcf18 Merge pull request #3857 from BBasile/issue-15336
fix issue 15336, opIn undocumented for JSONValue
2015-12-07 11:07:57 -08:00
Robert Schadek
c723d17e9f Merge pull request #3858 from aG0aep6G/10087
document that chunkSize must be positive
2015-12-07 15:20:23 +01:00
anonymous
1a2ef53923 document that chunkSize must be greater than zero
There's an assert(chunkSize != 0) in the constructor which needs to be
documented.
2015-12-07 13:27:19 +01:00
Basile Burg
c10012129d documented opIn 2015-12-07 11:41:17 +01:00
Brian Schott
61b07a39b1 Merge pull request #3856 from BBasile/mallocator-nogc
fix issue 15409 - Mallocator cant be used in @nogc code
2015-12-06 21:51:41 -08:00
Iain Buclaw
0816ad6113 Merge pull request #3598 from tsbockman/issue_14786
Fix Issue 14786 -  std.math.pow sometimes gets the sign of the result wrong.
2015-12-06 09:50:06 +01:00
tsbockman
4b690ef72f Added a slower generic fallback method, in case real.mant_dig > 64. 2015-12-05 15:39:48 -08:00
tsbockman
7929a45c1f Optimized slightly and made the unittests more generic in case real.mant_dig < 64. 2015-12-05 15:38:31 -08:00
tsbockman
01860999a9 Added static assert documenting the maximum precision for which this fix is valid. 2015-12-05 15:38:31 -08:00
tsbockman
49d4720e5c Fix Issue 14786 - std.math.pow sometimes gets the sign of the result wrong. 2015-12-05 15:38:31 -08:00
Basile Burg
0c513b1c15 allowed Mallocator to be used in nogc functions 2015-12-05 23:41:26 +01:00
Iain Buclaw
0c39d2d341 Merge pull request #3849 from Infiltrator/patch-1
fix issue 9717 - `std.math.round` rounds away from zero instead of to the nearest even integer
2015-12-05 18:56:49 +01:00
k-hara
e864e53adc fix property enforcement 2015-12-04 15:42:53 +09:00
Brian Schott
a0ff58e73c Merge pull request #3851 from jmdavis/tickduration
Remove stray uses of TickDuration from Phobos internals.
2015-12-03 22:40:46 -08:00
Vladimir Panteleev
d188c09520 Merge pull request #3832 from JackStouffer/patch-5
Update contributing guide
2015-12-03 19:43:00 +02:00
Jack Stouffer
551e503c82 Add FAQ to the contributing guide 2015-12-03 10:50:18 -05:00
k-hara
d7fdf6991f fix imports 2015-12-03 23:23:03 +09:00
k-hara
002829967b Fix curl API load code
`__traits(allMembers)` enumerates all members other than struct fields, so instead use `API.tupleof` to list only function pointer fields.
2015-12-03 23:21:51 +09:00
Jonathan M Davis
26a4340c30 Remove stray uses of TickDuration from Phobos internals. 2015-12-03 03:01:03 -08:00
Jonathan M Davis
3312e296ef Deprecate the non-benchmarking uses of TickDuration in std.datetime. 2015-12-03 00:38:34 -08:00
Jack Stouffer
a1b9d5dd1a removed string preds from std.algorithm.iteration 2015-12-02 15:44:56 -05:00
Jack Stouffer
1c5b5ce162 Updated capitalize to use asCapitalized 2015-12-02 12:06:22 -05:00
Infiltrator
91c38b4bfd fix issue 9717 - std.math.round rounds away from zero instead of to the nearest even integer 2015-12-03 03:56:37 +11:00
Jack Stouffer
4aefb6addc added entabber to shortcuts 2015-12-02 11:54:24 -05:00
Brian Schott
ef45b5e542 Merge pull request #3847 from bachmeil/change-datetime
Documentation: Added example to DateTime opBinary and reference to core.time.Duration
2015-12-01 16:09:16 -08:00
Q. F. Schroll
a0114bcc16 PR "Tuple's toString made useful" once again.
For the conversation and reasons see github.com/D-Programming-Language/phobos/pull/3594
2015-12-01 23:39:15 +01:00
Lance Bachmeier
0f23dbae28 Made the new unittests consistent. 2015-11-30 16:21:52 -06:00
Lance Bachmeier
c536217a0a Changed the Examples section to a commented unittest. Made the same changes to SysTime.opBinary. 2015-11-30 16:01:48 -06:00
Lance Bachmeier
fcdf67b36e Added an example of usage of DateTime opBinary. Added a reference to core.time.Duration 2015-11-30 15:06:11 -06:00
anonymous
933aa8e30d TypeInfo.init -> TypeInfo.initializer 2015-11-30 21:20:46 +01:00
Martin Nowak
4a12bd6e08 Merge pull request #3844 from Xinok/issue15385
Fix Issue 15385 - SortedRange.contains() optimize predicate calls
2015-11-30 02:34:36 +01:00
Xinok
dda21ec7d1 Issue 15385 2015-11-29 16:16:54 -06:00
Martin Nowak
d407ec73e4 Merge pull request #3843 from MetaLang/stable
Fix Issue 15281 - Add std.experimental.allocator to the build script
2015-11-29 22:40:29 +01:00
MetaLang
a1a596646f Add std.experimental.allocator to the build script 2015-11-29 16:01:00 -04:00
Brian Schott
40b2e45e33 Merge pull request #3838 from jmdavis/deprecations
Move some deprecations along.
2015-11-29 11:57:28 -08:00
Brian Schott
d1d129243f Merge pull request #3827 from rcorre/getSymbolsByUDA_private2
Enable getSymbolsByUDA to retrieve private members.
2015-11-29 01:41:03 -08:00
Brian Schott
19b272f18a Merge pull request #3840 from MartinNowak/purge_changelog
purge already released changelog entries
2015-11-29 00:16:19 -08:00
Martin Nowak
33ae2e5bb4 purge already released changelog entries 2015-11-28 17:56:51 +01:00
Ryan Roden-Corrent
79fd6aac79 Enable getSymbolsByUDA to retrieve private members.
Resolves #15335: getSymbolsByUDA fails if type has private members.
Generous (ab)use of mixins allows getSymbolsByUDA to reference symbols
without trying to access them, allowing it to inspect private members
without failing.

Testing this required private symbols defined outside of std.traits.
This adds std.internal.test.uda, which defines a struct containing
private members that is used in a unittest added to std.traits.
2015-11-28 07:14:47 -05:00
Vladimir Panteleev
e90be60a67 Merge pull request #3839 from aG0aep6G/ddlink
use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
2015-11-27 04:54:52 +02:00
Jonathan M Davis
7afe668428 Merge pull request #3807 from dcarp/Fix15320
[Issue 15320] eliminate 'static assert(__traits(compiles,..'
2015-11-26 17:57:44 -08:00
anonymous
6832caf0be use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
DDLINK/DDSUBLINK use ROOT_DIR which is more robust than a relative path.
2015-11-26 16:04:44 +01:00