Commit graph

518 commits

Author SHA1 Message Date
Robert Schadek
72d4cc7345 assert messages for std.array
more work on starting to work on dlang/phobos/project/2
2019-05-24 15:02:25 +01:00
Marco de Wild
b4756c2f5f
Improved error message when an assocArray can't be created 2019-05-12 00:19:58 +02:00
Walter Bright
b8b710f66e more scope for FormatSpec 2019-03-18 00:27:33 -07:00
Cameron Ross
fceed0d725
remove op param from ddoc 2019-01-23 04:57:00 -04:00
Cameron Ross
cae450bbf9
try to fix ddoc 2019-01-21 21:54:04 -04:00
Cameron Ross
e26cec8fdd
alias std.array.Appender.opOpAssign to put 2019-01-21 21:16:08 -04:00
Mathis Beer
7876c1d48d Fix issue 19572: Prevent Appender from implicitly calling struct constructors to cast away const. 2019-01-11 16:29:42 +01:00
Steven Schveighoffer
072463511c
staticArray needs to appear in jump table. 2018-12-26 17:38:44 -05:00
Sebastian Wilzbach
c7106f02b9
Merge pull request #6811 from edi33416/issue_13300
Fix Issue 13300 - pure function 'std.array.Appender!(T[]).Appender.en…
2018-12-23 11:23:05 +01:00
Eduard Staniloiu
fa19e3f5e7 Make ensureAddable and callers infer function attributes 2018-12-19 15:04:41 +02:00
Eduard Staniloiu
c575e985b3 Fix Issue 13300 - pure function 'std.array.Appender!(T[]).Appender.ensureAddable' cannot call impure function 'test.T.__fieldPostBlit' 2018-12-18 19:27:54 +02:00
Sebastian Wilzbach
49b4143b8e Remove isDynamicArray 2018-11-15 15:07:46 +10:00
Sebastian Wilzbach
bf5dc02f1a Fix Issue 9702, 10930 - std.array.replace cannot simple replace an element in array 2018-11-15 15:07:46 +10:00
The Dlang Bot
f961aa8686
Merge pull request #6155 from wilzbach/fix-5502
Fix Issue 5502 - More handy ways to create associative arrays
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-11-03 23:30:21 +01:00
dukc
84fe94c00e Removed an unittest of minimallyInitializedArray that can fail randomly 2018-10-31 12:38:38 +02:00
Sebastian Wilzbach
3cfe2c11fa Fix Issue 5502 - More handy ways to create associative arrays 2018-10-30 15:59:52 -04:00
The Dlang Bot
0994f692e2
Merge pull request #6711 from FeepingCreature/fix/join-unassignable-const-arrays
Fix issue 19257: std.array.join: only remove const if you can actually assign const to non-const values
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-10-03 01:06:34 +02:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Mathis Beer
7a32298747 Fix issue 19257: Only remove const on .join if you can actually assign const to non-const values. 2018-09-21 11:43:40 +02:00
dukc
16881035dc Addressed Andrei's review. 2018-06-29 22:18:12 +02:00
Timothee Cour
e191a7d6a4 Fixes Issue 16745 - Add template helper for creating static arrays with the size inferred 2018-06-29 22:18:12 +02:00
Steven Schveighoffer
4fe18b9055 Fix issue 18995 - Make sure GC calls destructor when using std.array.array 2018-06-16 14:42:40 -04:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Johan Engelen
fcc5ac2102
Improve documentation of std.array.replace and replaceInto
Note that `replace` doesn't have a `sink` parameter. And for `replaceInto`, `sink` must always be defined.
2018-05-30 19:41:10 +02:00
Jack Stouffer
cd197654e7 Remove template wide trusted in std.array 2018-05-07 11:03:54 -04:00
Steven Schveighoffer
adaba541eb Remove version(unittest) imports to avoid extra imports in user code. 2018-04-12 15:46:56 -04:00
Sebastian Wilzbach
4c016d129f Remove superfluous _range used to avoid auto-highlighting 2018-04-09 21:31:57 +02:00
Jack Stouffer
c3507beef4 Added params and returns to std.array functions 2018-04-05 12:32:34 -04:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Jack Stouffer
7beea030c7 Added writer overload of toString to Appender 2018-03-13 10:15:59 -04:00
Jack Stouffer
13cf12dfda Fix Issue 18166 - std.array.replace should be usable in @safe for dstrings 2018-03-12 10:51:24 -04:00
Jonathan M Davis
1436fca1cc Add website link to author name for Jonathan M Davis. 2018-03-10 16:31:23 -07:00
cedretaber
0ad322a75a Prefer an appender to a dynamic array 2018-03-02 13:02:12 +09:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Sebastian Wilzbach
1956daf34f Fix Issue 18341 - Documentation for std.array.split is confusing/incorrect 2018-02-19 22:50:03 +01:00
Sebastian Wilzbach
1c4153064e Remove public ddoc comment for a private symbol 2018-02-19 19:34:24 +01:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Jonathan M Davis
3385bd435a Move deprecations along. 2018-01-26 18:24:50 -07:00
Sebastian Wilzbach
41d158f4c7 Add substitute for lazy replacements 2018-01-25 09:30:33 +01:00
Sebastian Wilzbach
66b522979e Merge remote-tracking branch 'upstream/stable' into merge_stable
https://github.com/dlang/phobos/pull/6017 back to `master`

See also: https://github.com/wilzbach/git-tools
2018-01-09 19:56:59 +01:00
Sebastian Wilzbach
7c0dab8d12 Fix Issue 18215 - std.array.replace throws a range violation if the from range is longer than the array 2018-01-09 18:51:34 +01:00
The Dlang Bot
380b248b87
Merge pull request #5986 from wilzbach/replaceslice-safe
Fix Issue 18186 - std.array.replaceSlice should be usable in @safe
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2018-01-04 08:33:56 +01:00
The Dlang Bot
f3189822ab
Merge pull request #5989 from wilzbach/static-foreach
Use static foreach in Phobos
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-03 19:05:07 +01:00
Sebastian Wilzbach
7de3787876 Use static foreach in Phobos 2018-01-03 17:30:11 +01:00
Sebastian Wilzbach
b0575c8a66 @safeify more unittests II 2018-01-03 06:26:05 +01:00
Sebastian Wilzbach
84fdc2a844 Fix Issue 18186 - std.array.replaceSlice should be usable in @safe 2018-01-03 05:52:12 +01:00
John Colvin
b55c3c9806 Use named tuple for std.array.byPair 2017-11-28 17:05:03 +01:00
Sebastian Wilzbach
df6365092a Replace body keyword with its replacement: do
Automatic replacement with

    sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
The Dlang Bot
9599832755
Merge pull request #5696 from dukc/arrayOverlaps
std.array.overlap made ctfe:able and redocumented.
merged-on-behalf-of: unknown
2017-11-17 21:00:39 +01:00
The Dlang Bot
ffee71058e Merge pull request #5693 from RazvanN7/Issue_15096
Fix Issue 15096 - std.array.array cannot be instantiated for pointers to ranges
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-09-14 02:15:30 +02:00