Commit graph

11564 commits

Author SHA1 Message Date
Eduard Staniloiu
04e844da77 Allocators should take a ubyte[] memory block instead of a void[] one
Allocators that rely on taking a block of unused memory to manage and allocate
from it should take a ubyte[] instead of a void[] in order to prevent users
from accidentally passing valid data and cause memory corruption/leaks.
2017-04-04 16:46:38 +03:00
Eduard Staniloiu
7c0ebad377 Make allocators' resolveInternalPointer take a const pointer as source 2017-04-03 20:35:01 +03:00
The Dlang Bot
9595c9c278 Merge pull request #5314 from ntrel/format-ex
std.format: Improve FormatException messages
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-04-03 19:16:58 +02:00
The Dlang Bot
69f437a502 Merge pull request #5319 from RazvanN7/Issue_17283
Fix Issue 17283 - std.experimental.typecons uses private module members
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-04-03 15:52:32 +02:00
Steven Schveighoffer
3f0daf00b6 Fix issue 15534 - Rework constructor docs, removing reference to string parameter that
doesn't exist, and using more appropriate ddoc style.
2017-04-03 08:44:04 -04:00
RazvanN7
df400d9dff Fix Issue 17283 - std.experimental.typecons uses private module members 2017-04-03 12:55:49 +03:00
Andrei Alexandrescu
30b9da5189 Merge pull request #5312 from JackStouffer/secureCompare
Fix Issue 17286 - A function for comparing two digests securely
2017-03-31 17:04:36 -04:00
The Dlang Bot
441ea4af12 Merge pull request #5301 from chadjoan/patch-5
Clarify deallocation done by typecons.RefCounted.
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-03-31 20:20:38 +02:00
Nick Treleaven
d1e6cf0340 Add tests for incompatible format spec
Note: Remaining formatValue overloads may defer to these value types,
e.g. pointer -> int, bool -> int, char -> int.
2017-03-31 10:43:32 +01:00
Nick Treleaven
d1471d95e0 Use collectExceptionMsg, fix coverage for missing width/precision 2017-03-31 09:43:37 +01:00
Jack Stouffer
290447ead4 Fix Issue 17286 - A function for comparing two digests securely 2017-03-30 15:11:47 -04:00
The Dlang Bot
2f1de8aa72 Merge pull request #5297 from dukc/cycleOverloads
Simplified overloads of std.range.cycle.
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2017-03-30 20:48:14 +02:00
Nick Treleaven
b09ad9aeea Fix Issue 17288 - formattedWrite with width/precision and no value
Previously an RangeError at runtime or assert(0) at CT would fire from
formatNth with message e.g. "n = 1".
2017-03-30 17:45:03 +01:00
The Dlang Bot
ccf4ad1fca Merge pull request #5237 from wilzbach/booktable-stdx-allocator
[BOOKTABLES]: Add BOOKTABLE to stdx.allocator
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-03-30 18:18:08 +02:00
The Dlang Bot
b0ca159aab Merge pull request #5311 from JackStouffer/assumeUTF
Mention the extra checks in the std.string.assumeUTF docs
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2017-03-30 00:51:13 +02:00
The Dlang Bot
cc3658e394 Merge pull request #5313 from JackStouffer/hmac
Documented undocumented HMAC helpers
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2017-03-30 00:07:35 +02:00
The Dlang Bot
23726d6330 Merge pull request #5264 from s-ludwig/master
Fix issue 17251 - Appender.put doesn't accept const input range elements
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2017-03-29 23:39:29 +02:00
Jack Stouffer
75d1212766 Documented undocumented hmac helpers 2017-03-29 16:58:16 -04:00
Jack Stouffer
e6936d12ae Mention the extra checks in the std.string.assumeUTF docs 2017-03-29 10:19:41 -04:00
cjoan
37e1bbea3f More edits to typecons.RefCounted 2017-03-29 01:44:38 -04:00
cjoan
abddd888f2 Fixed typos in RefCounted documentation. 2017-03-29 00:06:51 -04:00
dukc
94b31ce55a It now still accepts inputRanges when they're infinite. 2017-03-28 07:54:44 +03:00
H. S. Teoh
ba8ad89b45 Add disclaimer to std.random about unsuitability for cryptographical purposes. 2017-03-27 10:31:21 -07:00
H. S. Teoh
e632c58dbe Remove @disable, which is now redundant. 2017-03-26 21:54:17 -07:00
Sönke Ludwig
bdb626f5ff
Remove trailing whitespace. 2017-03-25 19:09:50 +01:00
Sönke Ludwig
c770fb4812
Fix issue 17251 - Appender.put doesn't accept const input range elements.
The two overloads taking an element and a const range were conflicting because canPutConstRange is overlapping the definition of canPutItem.
2017-03-25 19:04:52 +01:00
H. S. Teoh
633a677144 Nicer error messages for std.typecons.experimental.Final. 2017-03-23 16:19:56 -07:00
The Dlang Bot
0b00a61782 Merge pull request #5295 from byebye/array_cat_opts
std.container.Array - optimize concatenation
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2017-03-23 23:22:36 +01:00
The Dlang Bot
5ad8e91613 Merge pull request #5286 from JackStouffer/array-docs
Improve some more docs in std.array
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2017-03-23 20:54:05 +01:00
byebye
9fddec58c9 std.container.Array - optimize concatenation 2017-03-23 12:58:01 +01:00
The Dlang Bot
e12fe76ba5 Merge pull request #5261 from Superstar64/isInputRange_InputAssignable
make InputAssignable work with isInputRange
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2017-03-22 23:53:30 +01:00
The Dlang Bot
b9e8783a99 Merge pull request #5293 from byebye/array_docs
std.container.Array - documentation cleanup
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2017-03-22 23:11:37 +01:00
The Dlang Bot
722683b651 Merge pull request #5296 from ntrel/ct-stdio-format
Issue 13568: Add CT-checked format string overloads to std.stdio
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2017-03-22 23:10:35 +01:00
cjoan
9c8a71ef6e Clarify deallocation done by typecons.RefCounted.
I had trouble understanding how RefCounted!T was supposed to help me manage resources.  These document changes should clarify the process and make it easier for others to understand.

This is follow-up after this post on the D learn forum: https://forum.dlang.org/post/qctmkqpqnreysxcjmrgm@forum.dlang.org
and after commits cd86cc25b6 and 33217eb46f "Clarify deallocation done by std.typecons.Unique."
2017-03-22 13:04:29 -04:00
The Dlang Bot
5105f45801 Merge pull request #5253 from JackStouffer/concurrency
Use dfmt on std/concurrency.d
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-03-22 17:07:45 +01:00
Jack Stouffer
a4f570fd4f Improve many docs in std.array 2017-03-22 11:19:10 -04:00
Martin Nowak
1be69f36df Merge remote-tracking branch 'upstream/stable' into merge_stable
# Conflicts:
#	std/regex/internal/backtracking.d
#	std/regex/internal/shiftor.d
#	std/regex/package.d
2017-03-21 15:29:15 +01:00
Nick Treleaven
d20056974a Document compile-time checking for format strings 2017-03-21 12:22:09 +00:00
Superstar64
250d972364 changed front declaration to an alias 2017-03-20 23:06:31 -04:00
byebye
165195936c std.container.Array - documentation cleanup
- add missing details, e.g. about exception being thrown
- fix wrong descriptions
- fix wrong complexity specifications
2017-03-21 00:53:49 +01:00
dukc
d37b8ad6d8 Simplified overloads of std.range.cycle. 2017-03-20 19:34:37 +02:00
Nick Treleaven
9ba4bd1958 std.format: Improve FormatException messages 2017-03-20 16:27:15 +00:00
Nick Treleaven
3aa8011a04 Issue 13568: Add CT-checked format string overloads to std.stdio
* Add overloads for readf, writef, writefln.
* Separate fmt argument from args for writef[ln] to improve docs.
2017-03-20 15:24:18 +00:00
Jack Stouffer
af4bb44baa Use dfmt on std/concurrency.d 2017-03-19 15:05:35 -04:00
The Dlang Bot
4a1733e7e2 Merge pull request #5288 from ntrel/ct-format
Issue 13568: Add CT-checked format string overloads to std.format
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-03-19 01:06:35 +01:00
The Dlang Bot
09ae19f76b Merge pull request #5287 from JackStouffer/traits-docs
Improve some docs in std.traits
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-03-19 00:48:09 +01:00
Jack Stouffer
118f2d7733 Improve some docs in std.traits 2017-03-18 16:41:18 -04:00
Nick Treleaven
c6a7e3ede4 Tweaks
Add constraints.
Fix test for ctfpMessage equality.
2017-03-18 10:33:06 +00:00
The Dlang Bot
fc121f0904 Merge pull request #5285 from quickfur/format_spec
[dox] Fix missing '|' in std.format grammar.
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-03-18 08:25:11 +01:00
The Dlang Bot
3568cb38e7 Merge pull request #5229 from schveiguy/fixtextwriter
Fix issue 17229 - File.byChunk (ubyte) w/ stdout.lockingTextWriter corrupts utf-8 data (and is very slow)
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-03-17 23:41:41 +01:00